题解列表

筛选

DNA (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int n; scanf("%d", &n); while (n--) { int group, b……

Hello, world! (C语言代码)

摘要:解题思路:scanf函数返回值为-1时停止输入注意事项:数组a为char型时程序答案错误,查了一下原因应该是Ctrl+Z的ASCII码为26被成功写入数组的元素中,此时scanf函数返回值不为EOF,……

数字整除 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; const int M=100+5; char……