Codeforces 810 A.Straight «A»】的更多相关文章

A. Straight «A»   time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output   Noora is a student of one famous high school. It's her final year in school — she is going to study in university next ye…
[题目链接]:http://codeforces.com/contest/810/problem/A [题意] 有n门课的成绩,和一个整数k代表每门课的满分都是k分; 然后这n门课的成绩是按照平均分算的; 且最后的成绩是平均分四舍五入之后得到的一个整数; 问你再加几门满分成绩的科目,最后得到的n门课的成绩四舍五入之后结果为k;(即满分); [题解] 傻逼模拟题. 一直增加就好; [Number Of WA] 0 [完整代码] #include <bits/stdc++.h> using nam…
题目链接:http://codeforces.com/contest/810/problem/D 题意:两个人玩一场游戏要猜出Noora选的f种菜的任意两种.一个人猜点另一个人回答 TAK如果 ,(x,y是猜的数,a表示Noora 选的菜中离x最近的,b是离y最近的,菜种是1-n个数.)否则就回答NIE. 题解:这题比较特殊,输入只需要n,k然后根据我们的输出题目作出反馈. 怎么确保能找到答案.我们可以将(1-n)分成两份(1-mid)(mid+1-r),显然要猜的数肯定是在这两个区间内. 然后…
C. Do you want a date? time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output   Leha decided to move to a quiet town Vičkopolis, because he was tired by living in Bankopolis. Upon arrival he imme…
B. Summer sell-off   time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Summer holidays! Someone is going on trips, someone is visiting grandparents, but someone is trying to get a part-time j…
codeforces 810 D. Glad to see you! http://codeforces.com/contest/810/problem/D 题意 大小为k的集合,元素的范围都在[1,n],每次可以询问(x,y),如果min|x-a|<=min|y-b| a,b∈S,交互库返回”TAK",否则返回“NIE”. 分析 怎么确保能找到答案.我们可以将(1-n)分成两份(1-mid)(mid+1-r),显然要猜的数肯定是在这两个区间内. 然后怎么判断我们可以找mid和mid+1两…
C. Do you want a date? time limit per test:2 seconds memory limit per test:256 megabytes input:standard input output:standard output Leha decided to move to a quiet town Vičkopolis, because he was tired by living in Bankopolis. Upon arrival he immedi…
A. Straight «A» time limit per test:1 second memory limit per test:256 megabytes input:standard input output:standard output Noora is a student of one famous high school. It's her final year in school — she is going to study in university next year.…
A. Straight «A» 题面 Noora is a student of one famous high school. It's her final year in school - she is going to study in university next year. However, she has to get an «A» graduation certificate in order to apply to a prestigious one. In school, w…
http://codeforces.com/contest/738/problem/C Vasya is currently at a car rental service, and he wants to reach cinema. The film he has bought a ticket for starts in t minutes. There is a straight road of length s from the service to the cinema. Let's…