题解列表

筛选

3014: 计算星期几

摘要:``` #include using namespace std; int main(){ int a,b,ans=1,x=1; cin>>a>>b; //cout……

3012: 分苹果

摘要:``` #include using namespace std; int main(){ int apple=0,x,sum=0; cin>>x; for( int i=1;i……

3011: 余数相同问题

摘要:``` #include using namespace std; int main(){ int a,b,c,x=2; cin>>a>>b>>c; for( int i=1; ;i……

2820: 含k个3的数

摘要:#含K个三的数 ##正常解法 很正常,直接用while循环和if语句就行了; ``` #include using namespace std; int main() { i……

题解 3011: 余数相同问题

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

题解 2822: 求分数序列和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double a=1.0,b=2.0,c=0;……

萌新出品:2749: Hello, World!

摘要:参考代码:#include<iostream>using namespace std;int main(){  cout <<"Hello, World!";    return 0;}c完记的给好评……