题解列表

筛选

简单易懂,极简

摘要:解题思路:注意事项:参考代码:int main(){ int x = 0; int y = 0; while ((x = getchar()) != '\n') { if (x ==……

数据结构-八进制数

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

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

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

The 3n + 1 problem

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

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

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