From 26269c2c8893859e7d5dc1a02674c96d12b5fa38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BF=97=E6=99=A8?= Date: Wed, 11 Jan 2023 18:10:36 +0800 Subject: [PATCH] add exercises --- .../exercies.md" | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git "a/exercises/\347\224\237\344\272\247\351\230\237\347\232\204\345\210\230\345\220\214\345\255\246/\345\233\260\351\232\276/\346\237\257\351\207\214\346\230\202\345\256\266\346\227\217\346\240\221/exercies.md" "b/exercises/\347\224\237\344\272\247\351\230\237\347\232\204\345\210\230\345\220\214\345\255\246/\345\233\260\351\232\276/\346\237\257\351\207\214\346\230\202\345\256\266\346\227\217\346\240\221/exercies.md" index 51966ac..429e348 100644 --- "a/exercises/\347\224\237\344\272\247\351\230\237\347\232\204\345\210\230\345\220\214\345\255\246/\345\233\260\351\232\276/\346\237\257\351\207\214\346\230\202\345\256\266\346\227\217\346\240\221/exercies.md" +++ "b/exercises/\347\224\237\344\272\247\351\230\237\347\232\204\345\210\230\345\220\214\345\255\246/\345\233\260\351\232\276/\346\237\257\351\207\214\346\230\202\345\256\266\346\227\217\346\240\221/exercies.md" @@ -4,16 +4,16 @@ 现在,你需要编写一个程序,读入一个包含若干行的字符串,每行表示一个人的信息。每行的格式如下: -<人物名称> is the <父亲名称>\'s <儿子> +<人物名称> is the <父亲名称>`s <儿子> 其中,人物名称是一个不包含空格的字符串,父亲名称和儿子也是一个不包含空格的字符串。 例如,下面是一棵柯里昂家族的家谱: -Don Corleone is the Don\'s son -Fredo Corleone is the Don\'s son -Michael Corleone is the Don\'s son -Tom Hagen is the Don\'s adopted son +Don Corleone is the Don`s son +Fredo Corleone is the Don`s son +Michael Corleone is the Don`s son +Tom Hagen is the Don`s adopted son 你的程序需要按照这些信息建立一棵二叉树,并输出这棵树的前序遍历。 @@ -37,10 +37,10 @@ Don Corleone Fredo Corleone Michael Corleone Tom Hagen ## 输入样例 4 -Don Corleone is the Don\'s son -Fredo Corleone is the Don\'s son -Michael Corleone is the Don\'s son -Tom Hagen is the Don\'s adopted son +Don Corleone is the Don`s son +Fredo Corleone is the Don`s son +Michael Corleone is the Don`s son +Tom Hagen is the Don`s adopted son ## 输出样例 -- GitLab