题解列表

筛选

1093: 字符逆序

摘要:要注意,a数组是一个字符串数组,输入后最后一项是‘\0’,因此第8行的strlen(a)还要-1 ```cpp #include #include using namespace std; ……

1095: The 3n + 1 problem

摘要:```cpp #include using namespace std; int main() { int m,n,max; while(cin>>m>>n) {……