题解 2784: 收集瓶盖赢大奖

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

收集瓶盖赢大奖

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

收集瓶盖赢大奖

摘要:解题思路:就是简单的判断注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);    if(a>=10||……

收集瓶盖赢大奖

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

2784: 收集瓶盖赢大奖

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

2784: 收集瓶盖赢大奖

解题思路:注意事项:n,m分别是幸运和鼓励的数量,题目说拥有10个幸运说明是要等于10,加之样例给出的11可以推出幸运数可以大于/小于10,因此是大于等于10(即n>=10)鼓励数同理参考代码:#includeusingnamespacestd;intmain(){intn,

C++简单解法

摘要:解题思路:属于基础题目注意事项:参考代码:#include<iostream>using namespace std;int main(void){ i……

2784普普通通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; scanf("%d%d",&n,&m); if (n >=10 || m>=20) prin……