题解列表

筛选

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

摘要:解题思路:这题就是纯属暴力判断。注意事项:数要算准!参考代码:#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!”,第三行输出“*******************……

数据结构-八进制数

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a;int main() {   while(cin>>a) p……