3114:【例20.2】 收集瓶盖赢大奖
[例 20.2] 收集瓶盖赢大奖
1045:收集瓶盖赢大奖
c++编程之收集瓶盖赢大奖
1045:收集瓶盖赢大奖-信息学奥赛一本通_哔哩哔哩_bilibili
1045:收集瓶盖赢大奖-信息学奥赛一本通_哔哩哔哩_bilibili
1.4_07收集瓶盖赢大奖(c语言)_哔哩哔哩_bilibili
阅读程序写结果:函数
阅读程序写结果 入门篇 1、NOIP1998
阅读程序写结果 入门篇 2、NOIP1998 普及组3.2
阅读程序写结果 入门篇 3、NOIP2001普及组阅读程序写结果3.1
阅读程序写结果 入门篇(1-12题)
阅读程序 普及篇 2、【NOIP1999】
阅读程序 普及篇 3、【NOIP1999】
阅读程序 普及篇 4、【NOIP2000】
阅读程序 普及篇 5、NOIP2001
第三章 阅读程序 第2节 普及篇 6、【NOIP2001】
阅读程序 普及篇(1-8题)
阅读程序 普及篇(9-14题)
阅读程序 普及篇(9-14题)_#include<cstdio> using namespace std; int number,n-CSDN博客
阅读程序 普及篇 10、NOIP2004
C语言代码:
/*
NOI / 1.4编程基础之逻辑表达式与条件分支
07收集瓶盖赢大奖 2021.11.14 AC
http://noi.openjudge.cn/ch0104/solution/31321517/
*/
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
if(a>=10||b>=20) printf("1");
else printf("0");
return 0;
}
C++代码:
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a>=10||b>=20)
{
cout<<1;
return 0;
}
cout<<0;
return 0;
}
/*
1045:收集瓶盖赢大奖
http://ybt.ssoier.cn:8088/problem_show.php?pid=1045
*/
#include <bits/stdc++.h>
using namespace std;
int main( void )
{
int a,b;
cin>>a>>b;
if(a>=10 || b>=20 )
{
cout<<"1"<<endl;
}
else
{
cout<<"0"<<endl;
}
return 0;
}
python3代码:
"""
1.4编程基础之逻辑表达式与条件分支 07 收集瓶盖赢大奖
http://noi.openjudge.cn/ch0104/07/
https://blog.csdn.net/yigezzchengxuyuan/article/details/86651658
"""
x, y = map(int, input().split())
if x >= 10 or y >= 20:
print("1")
else:
print("0")