题解列表

筛选

1003: [编程入门]密码破译

摘要:解题思路:此题就是把一个字符串的字母用它后面的第4个字母来代替。注意事项:当字母往后移四格,要判断它会不会越界,而且要分条件进行移位。参考代码:#include<bits/stdc++.h>//万能头……

求平方和题解

摘要:解题思路:就个输入输出!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ scanf("%d%d",……

[编程入门]利润计算题解

摘要:解题思路:这题就是纯属暴力判断。注意事项:数要算准!参考代码:#include<bits/stdc++.h>using namespace std;long long a;int main(){ sc……

编写题解 1261: 速算24点(python)

摘要:itertools是一个迭代器模块,具体功能详见 https://docs.python.org/3/library/itertools.html#参考代码:import itertools c……

The 3n + 1 problem

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int x,y,max,a,b,rest; while(~scanf("%d %d",&a,&b)) { ……

1001: [编程入门]第一个HelloWorld程序

摘要:解题思路:这道题其实就是简单的输入输出,即第一行输出“**************************”,第二行输出“Hello World!”,第三行输出“*******************……