3114:【例20.2】 收集瓶盖赢大奖(C、C++、python)

771 篇文章 3 订阅
401 篇文章 10 订阅

3114:【例20.2】 收集瓶盖赢大奖

信息学奥赛一本通-编程启蒙(C++版)在线评测系统

[例 20.2] 收集瓶盖赢大奖

1045:收集瓶盖赢大奖

信息学奥赛一本通(C++版)在线评测系统

c++编程之收集瓶盖赢大奖

1045:收集瓶盖赢大奖-信息学奥赛一本通_哔哩哔哩_bilibili

1045:收集瓶盖赢大奖-信息学奥赛一本通_哔哩哔哩_bilibili

1.4_07收集瓶盖赢大奖(c语言)_哔哩哔哩_bilibili

收集瓶盖赢大奖(信息学奥赛一本通-T1045)_哔哩哔哩_bilibili

c++编程之收集瓶盖赢大奖_哔哩哔哩_bilibili




 




阅读程序写结果:函数

阅读程序写结果:函数_哔哩哔哩_bilibili

阅读程序写结果 入门篇 1、NOIP1998

阅读程序写结果 入门篇 1、NOIP1998_noip1998程序阅读-CSDN博客

阅读程序写结果 入门篇 2、NOIP1998 普及组3.2

阅读程序写结果 入门篇 2、NOIP1998 普及组3.2_noip1998普及组初赛阅读程序-CSDN博客

阅读程序写结果 入门篇 3、NOIP2001普及组阅读程序写结果3.1

阅读程序写结果 入门篇 3、NOIP2001普及组阅读程序写结果3.1-CSDN博客

阅读程序写结果 入门篇(1-12题)

阅读程序写结果 入门篇_阅读程序写结果 输入3-CSDN博客

阅读程序 普及篇 2、【NOIP1999】

阅读程序 普及篇 2、【NOIP1999】-CSDN博客

阅读程序 普及篇 3、【NOIP1999】

阅读程序 普及篇 3、【NOIP1999】-CSDN博客

阅读程序 普及篇 4、【NOIP2000】

阅读程序 普及篇 4、【NOIP2000】_noip阅读程序-CSDN博客

阅读程序 普及篇 5、NOIP2001

阅读程序 普及篇 5、【NOIP2001】_noip2001阅读程序-CSDN博客

第三章 阅读程序 第2节 普及篇 6、【NOIP2001】

第三章 阅读程序 第2节 普及篇 6、【NOIP2001】_全国入门组 csp-j 初赛模拟试题 (3)-CSDN博客

阅读程序 普及篇(1-8题)

阅读程序 普及篇(1-8题)-CSDN博客

阅读程序 普及篇(9-14题)

阅读程序 普及篇(9-14题)_#include<cstdio> using namespace std; int number,n-CSDN博客

阅读程序 普及篇 10、NOIP2004

阅读程序 普及篇 10、NOIP2004-CSDN博客




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")
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

dllglvzhenfeng

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值