题解 2784: 收集瓶盖赢大奖

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

筛选

2784: 收集瓶盖赢大奖

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

题解 2784: 收集瓶盖赢大奖

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

霸道坤坤爱上猴

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

收集瓶盖赢大奖

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

编写题解 2784: 收集瓶盖赢大奖

摘要:解题思路:定义了两个变量a和b来记录拥有的瓶盖数量。然后,我们使用if语句来检查是否可以兑换大奖。如果a大于等于10或b大于等于20,则可以兑换大奖,输出1;否则,不能兑换大奖,输出0。注意事项:参考……

收集瓶盖赢大奖

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