题解列表

筛选

求对角线之和

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

2120: 信息学奥赛一本通T1312-昆虫繁殖

摘要:解题思路:每对成虫过x个月产y对卵,每对卵要过两个月长成成虫。假设每个成虫不死,第一个月只有一对成虫,且卵长成成虫后的第一个月不产卵(过X个月产卵),问过Z个月以后,共有成虫多少对?0≤X≤20,1≤……

[编程入门]C语言循环移位

摘要:解题思路:注意事项:参考代码://程序名:新的C++程序//作者: #include<iostream>#include<fstream>#include<algorithm>using namesp……

[编程入门]二进制移位练习

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<cmath>using namespace std;vector<int> arr;……

1195: 去掉双斜杠注释

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

1197: 发工资咯

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int Dno[6]={100,50,10,5,2,1};//面额大小 int su……

二级C语言-求偶数和

摘要:解题思路:用%做注意事项:%2参考代码:#include<bits/stdc++.h>using namespace std;int n,s,z;int main(){     cin>>n; for……