#D. 魔法咒语

    Type: Default 1000ms 256MiB

魔法咒语

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目背景

小罗是魔法帝国的咒语检查员,负责检查咒语是否写错,而判断咒语对错的方法,就是把咒语顺着读和逆着读是否相同。

输入

输入包含多组测试数据 每组数据占一行,包含一个有小写字母构成的字符串,字符串长度不超过1000。

输出

每组数据输出一行一个结果,如果咒语正确,则输出nice,否则输出no

样例

hellolleh
helloworld
nice
no

提示

可能会用到的

char str[1005];//定义长度位1005的字符数组也就是字符串

while(scanf(" %s",str)!=EOF){//多组输入模板
    
}

int len = strlen(str); //获取字符串str长度

限制

1s, 1024KiB for each test case.

2022新生周赛第二场(Div. 3)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
6
Start at
2022-10-7 20:00
End at
2022-10-7 21:39
Duration
1.7 hour(s)
Host
Partic.
27