发表评论取消回复
相关阅读
相关 1124 Raffle for Weibo Followers (20point(s)) 模拟
题目链接题目链接思路理解题意:每隔n个人选一个获奖者,但是要求这n个人里面不能有已经获奖的人;思路:用一个set保存已经获奖的人,s代表下一个获奖人的次序,依次读入每一个...
相关 PAT(甲级)1015 Reversible Primes (20point(s))
题目题目链接思路题目大意:判断一个数以及逆序是不是质数;注意:0和1都不是质数,记得特判一下;代码#include <iostream>#include &l...
相关 PAT(甲级)1008 Elevator (20point(s))
题目题目链接思路每次和上次的楼层比较一下,判断是上楼还是下楼;代码#include <iostream>using namespace std;int mai...
相关 noip模拟测试20
-------------------- T1:周(week) 爆搜,完了…… ![ContractedBlock.gif][] ![ExpandedBlockSta
相关 【PAT (Advanced Level) Practice】1124 Raffle for Weibo Followers (20 分)
1124 Raffle for Weibo Followers (20 分) John got a full mark on PAT. He was so happy th
相关 L1-006 连续因子 (20 point(s))
一个正整数 N 的因子中可能存在若干连续的数字。例如 630 可以分解为 3×5×6×7,其中 5、6、7 就是 3 个连续的数字。给定任一正整数 N,要求编写程序求出最长连续
相关 HDU1124 Factorial
Problem Description The most important part of a GSM network is so called Base Transcei
相关 1124. Raffle for Weibo Followers (20)
John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for hi
相关 PAT 1001 A+B Format(20 points(s))
1001 A+B Format (20 point(s)) Calculate a+b and output the sum in standard format – t
相关 1124. Raffle for Weibo Followers (20)
John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for hi
还没有评论,来说两句吧...