题解列表

筛选

矩阵对角线求和

摘要:解题思路: 打代码注意事项: 不要把键盘敲坏参考代码:#include<stdio.h>int main(){    int x, y, sum1 = 0, sum2 = 0, a[3][3];   ……

C++进制转换输出

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a;    cin>>a;    cout<<oct<<……

The 3n + 1 problem

摘要:解题思路:注意事项:参考代码:def f(x):    c=1    while x!=1:        if x%2==0:            x=x//2        else:     ……

字符串的输入输出处理

摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n):    s=input()    print(s)    print()while True:    s=……

用筛法求之N内的素数。

摘要:解题思路:注意事项:参考代码:from math import *n=int(input())def pd(x):    if x==2:        return True    else:   ……

小数点后保留N位

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    float a,c;  c……

for的引用破解密码

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    string s;    cin>>s;    for(auto……

[编程入门]利润计算,简单算法。

摘要:解题思路:此类问题可属于简单类型的,只要读清楚题目,便能轻松的解决。注意事项:注意范围!!!参考代码:#include<stdio.h>int main(){ int l,n; scanf("%d",……

A+B for Input-Output Practice (IV)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n,i,sum=0;    cin>>n;    whi……

简单又暴力

摘要:解题思路:逐层思考思考,简单暴力。注意事项:注意开始的位置。参考代码:#include<stdio.h>int main(void){ int m,n,a,b; scanf("%d%d",&m,&n)……