题解列表

筛选

1762: printf基础练习

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { printf("0%o\n0x%x",123456789,123456789); return ……

1761: 学习ASCII码

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { printf("%d %c",&#39;t&#39;,63); return 0; }……

1670: 拆分位数

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

题解 3003: 鸡兔同笼问题

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

题解 2751: 超级玛丽游戏

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

自定义函数求最大公约数最小公倍数

摘要:解题思路:最大公约数利用辗转相除法,最小公倍数为两数相乘再除以最大公约数注意事项:参考代码:#include<stdio.h>int gcd(int x,int y)//最大公约数{    int m……

2831: 画矩形

摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(int argc, char** argv) { int a,b,c; char d……

矩阵对角线简单求和

摘要:解题思路:写出对角线的数组对应下标,不难发现规律注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3],i,j,m=0,k=0; for(i=0;i<3;……

快且蠢(有点废空间)

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