题解列表

筛选

The 3n + 1 problem,goto真好用!

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){     // 定义变量a, b, c和数组d,l用……

看不懂直接喷我

摘要:解题思路:注意事项: 看我评论!!!!!参考代码: #include #include int main() { int i; char a[300]; gets (a); int num=strle……

最普通的解题方法

摘要:解题思路:注意事项:注意将条件考虑完整参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d %d",&a,&b);    if(0<=a……

可以稍微少打一些代码

摘要:解题思路:注意事项:不要忘记switch语句的花括号参考代码:#include<stdio.h>int main(){    int a;    scanf("%d",&a);    switch(a……

3岁都能看懂

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {    int k;    scanf("%d", &k);        if (k == 1 || k =……