题解列表
题解 3012: 分苹果
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>int main(){ int n; scanf("%d",&n); printf("%ld",(n+1)……
余数相同问题(c++)
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; int ……
1099: 校门外的树(勿看,半成品)
摘要:解题思路:#include <bits/stdc++.h>//
using namespace std;
int ji[10000000];
int main()
{
int l,m……
1099: 校门外的树
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int l,m,tree[10000000],s,e,sum=0;int main……
1099: 校门外的树
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int l,m,tree[1000000],s,e,sum=0,a=0;int main()……
题解 2839: 石头剪刀布
摘要:先仔细读题,理解题目的含义石头剪刀布是常见的猜拳游戏。石头胜剪刀,剪刀胜布,布胜石头。如果两个人出拳一样,则不分胜负。一天,小A和小B正好在玩石头剪刀布。已知他们的出拳都是有周期性规律的,比如:“石头……
1099: 校门外的树
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int l,m,su……
石头剪刀布(微详细)
摘要:“石头剪刀布”#include <bits/stdc++.h>
using namespace std;
int main()
{
int N,NA,NB,a[10000]……