1085

P1085题解

思路 1.定义校内时间/校外时间/最大值 (记录不高兴值) /记录星期 int n,m,maxx=-1,tmp; 2.使用循环输入并判断 for(int i=1;i<=7;i++){//循环一周的日期 cin>>n>>m; if(n+m>8 && maxx<n+m){//如果津津不高兴了且它比以往的 ......
题解 P1085 1085

CF1085F

\(n\) 个人排成一排,每个人有石头剪刀布中一个手势,每次选择相邻两人石头剪刀布,若分出胜负则将负者剔除序列,否则选择一人剔除,问有多少人可能成为最后剩下的人。\(q\) 次询问,每次单点修改。\(n,q\leq 2\times 10^5\)。 简单题。手推一下发现一个人胜利条件等价于两边均满足以 ......
1085F 1085 CF

PAT_A 1085 Perfect Sequence

Given a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where M and m are the max ......
Sequence Perfect PAT_A 1085 PAT

P1085 [NOIP2004 普及组] 不高兴的津津

# [NOIP2004 普及组] 不高兴的津津 ## 题目描述 津津上初中了。妈妈认为津津应该更加用功学习,所以津津除了上学之外,还要参加妈妈为她报名的各科复习班。另外每周妈妈还会送她去学习朗诵、舞蹈和钢琴。但是津津如果一天上课超过八个小时就会不高兴,而且上得越久就会越不高兴。假设津津不会因为其... ......
P1085 1085 NOIP 2004

1085 Perfect Sequence(附测试点5分析)

题目: Given a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where M and m are the ......
Sequence Perfect 1085

PAT Basic 1085. PAT单位排行

PAT Basic 1085. PAT单位排行 1. 题目描述: 每次 PAT 考试结束后,考试中心都会发布一个考生单位排行榜。本题就请你实现这个功能。 2. 输入格式: 输入第一行给出一个正整数 N($≤10^5$),即考生人数。随后 N 行,每行按下列格式给出一个考生的信息: 准考证号 得分 学 ......
PAT 单位 Basic 1085
共6篇  :1/1页 首页上一页1下一页尾页