首页 > 其他分享 >ZOJ 3927 Programming Ability Test

ZOJ 3927 Programming Ability Test

时间:2022-10-18 14:33:48浏览次数:29  
标签:25 20 int ZOJ d% Programming Test 80 include

Programming Ability Test (PAT) aims to evaluate objectively, through unified examinations with automatic online judging system, the abilities of testees in programming and algorithm design, hence to eval(0 <= ScoreA <= 20, 0 <= ScoreB, ScoreC <= 25, 0 <= ScoreD

Output

For each test case, if the examinee gets 80 points or above in total, output "Yes", else output "No".

Sample Input

4
0 0 5 30
20 25 20 0
20 25 20 15
20 25 25 30

Sample Output

No
No
Yes
Yes
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <queue>

using namespace std;
int t;
int a,b,c,d;
int main()
{
int t;
while(scanf("%d",&t)!=EOF)
{
while(t--)
{
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a+b+c+d>=80)
printf("Yes\n");
else
printf("No\n");
}
}
return 0;
}



标签:25,20,int,ZOJ,d%,Programming,Test,80,include
From: https://blog.51cto.com/u_15834522/5766677

相关文章

  • shell的条件测试语句:test
    条件测试:  判断某需求是否满足,需要由测试机制来实现,专用的测试表达式需要由测试命令辅助完成测试结果:若真,则状态码变量$?返回0若假,则状态码变量$?返回1条......
  • ZOJ 3935 2016
    Inmathematics,apolygonalnumberisanumberrepresentedasdotsorpebblesarrangedintheshapeofaregularpolygon.Thedotsarethoughtofasalphas(uni......
  • CISSP考点拾遗——外部测试External Testing和内部测试Internal Testing
    所谓外部External/内部Internal测试关注的是从什么位置开始测试,而不是测试人员的来源。外部安全测试:是从组织的安全周界之外进行的,目的是揭示可能被外部攻击者利用的漏洞。......
  • TESTSTATICINITALIZEBLOCK.JAVA静态初始化块的执行顺序
        输出结果:100 300 “public int field=100;”将field初始化为100,直接调用InitializeBlockClass()输出的是100;“obj=new InitializeBlockC......
  • test34-文件输入输出序列化和反序列化 msgpack map用法
    #!/usr/bin/envpython#-*-encoding:utf-8-*-'''importcsvheaders=['学号','姓名','分数']rows=[('202001','张三','98'),('202002','李四','95'),('202003&......
  • 如何修改Airtest源码&如何提交修改
    转自公众号:AirtestProject为什么你自己修改的Airtest源码不生效?(上)前言 相信小伙伴们多少都会遇到想要修改Airtest源码,方便自己脚本编写的情况。这时,不少同学会立即去......
  • Airtest之用装饰器重试解决Poco RpcTimeoutError
    上期回顾:Airtest自动化多设备测试框架DreamMultiDevices以下基于python3.8;airtestIDE1.2.14;airtest1.2.6;pocoui1.0.87运行Poco脚本的时候,有没有遇到过RpcTimeout的报......
  • 基于airtest-selenium的UI自动化测试
    一.airtest-selenium环境搭建1.1安装与介绍airtest-selenium库是基于selenium库的进一步封装:https://airtest.doc.io.netease.com/tutorial/13_Selenium/pip instal......
  • AtCoder Regular Contest 151
    A如果\(S\)和\(T\)的某一位相同,那么\(U\)无论怎么填都无法影响答案,为了字典序最小,一定填\(0\)。只考虑\(S\)和\(T\)不同的位置,假设有\(k\)位不同,易知\(k\)......
  • Airtest自动化测试实操案例 | Windows应用篇
    转自公众号:AirtestProject前言之前有同学留言说想看Windows应用的自动化,那么今天我们就用1个简单的例子,带大家一起来看一下Windows应用的自动化究竟有哪些坑。不过在此之......