
模拟
Roly_Yu
快码佳编
展开
-
九度 OJ 题目1553:时钟
题目:http://ac.jobdu.com/problem.php?pid=1553 /* 分别算出时针和分针的度数,做差之后分几种情况讨论,(-360,-180),[-180,0),[0,180],(180,360). */ #include int main(){ int h,m; while (~scanf("%d:%d",&h,&m)) {原创 2014-03-18 11:39:54 · 1131 阅读 · 2 评论 -
Can you find it?(hdu 2141)
Can you find it? Time Limit: 10000/3000 MS (Java/Others) Memory Limit: 32768/10000 K (Java/Others) Total Submission(s): 4217 Accepted Submission(s): 1049 Problem Description Give you three sequences原创 2014-03-13 14:13:47 · 487 阅读 · 0 评论 -
Luke'family
Luke's family TimeLimit: 1 Second MemoryLimit: 32 Megabyte Totalsubmit: 80 Accepted: 22 Description In the stars’ family, Luke only has seen his father and grandfather. He really wants to原创 2014-03-13 14:14:12 · 483 阅读 · 0 评论 -
Humble Numbers(hdu1058)
Humble Numbers Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8304 Accepted Submission(s): 3618 Problem Description A number whose only prime fa原创 2014-03-13 14:14:00 · 489 阅读 · 0 评论 -
统计元音(hdu 2027)
统计元音 Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 10 Accepted Submission(s) : 5 Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem原创 2014-03-13 14:13:56 · 557 阅读 · 0 评论 -
lucky number(hdu 3346)
Lucky Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1057 Accepted Submission(s): 540 Problem Description To Chinese people, 8 is a lucky原创 2014-03-13 14:13:08 · 500 阅读 · 0 评论 -
Ride to School(POJ 1922)
Ride to School Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 15169 Accepted: 6090 Description Many graduate students of Peking University are living in Wanliu Campus, which is原创 2014-03-13 14:13:24 · 488 阅读 · 0 评论 -
ASCII编码排序(2000)
ASCII码排序 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 34205 Accepted Submission(s): 14181 Problem Description 输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个原创 2014-03-13 14:11:39 · 1085 阅读 · 0 评论 -
friend(hdu 1719)
Friend Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 816 Accepted Submission(s): 380 Problem Description Friend number are defined recursively原创 2014-03-13 14:13:13 · 652 阅读 · 0 评论 -
A hard puzzle(1097)
A hard puzzle Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 14539 Accepted Submission(s): 5135 Problem Description lcy gives a hard puzzle to f原创 2014-03-13 14:12:42 · 461 阅读 · 0 评论 -
Easier Done Than Said?(hdu 1039)
Easier Done Than Said? Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3492 Accepted Submission(s): 1771 Problem Description Password security is原创 2014-03-13 14:13:37 · 436 阅读 · 0 评论 -
FZU 1913 Easy Comparison
Problem 1913 Easy Comparison Accept: 205 Submit: 284 Time Limit: 1000 mSec Memory Limit : 32768 KB 1913 Easy Comparison (foj)" TITLE="Problem 1913 Easy Comparison (foj)" /> Problem Descripti原创 2014-03-13 14:13:34 · 509 阅读 · 0 评论 -
COdeforces Round #264 (Div. 2) C. Gargari and Bishops
直接暴力枚举,分别枚举hei #include #include #include #include #include #include using namespace std; typedef long long ll; const int maxn = 2005; int grid[maxn][maxn]; ll a[maxn<<1],b[maxn<<1]; int n; in原创 2014-08-31 00:31:24 · 454 阅读 · 0 评论 -
More is better(hdu 1856)
More is better Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 327680/102400 K (Java/Others) Total Submission(s): 4897 Accepted Submission(s): 1824 Problem Description Mr Wang wants some boys to原创 2014-03-13 14:13:49 · 408 阅读 · 0 评论 -
C语音合法标识符
C语言合法标识符 Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 9 Accepted Submission(s) : 7 Problem Description 输入一个字符串,判断其是否是C的合法标识符。 Input 输入数据包含多个测试原创 2014-03-13 14:11:37 · 1104 阅读 · 0 评论 -
Text Reverse(hdu 1062)
Text Reverse Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7906 Accepted Submission(s): 3015 Problem Description Ignatius likes to write words原创 2014-03-13 14:13:51 · 461 阅读 · 0 评论 -
2072Count(foj)
Count (foj)" TITLE="2072 Count (foj)" /> Problem 2072 Count Accept: 110 Submit: 295 Time Limit: 1000 mSec Memory Limit : 65536 KB Count (foj)" TITLE="2072 Count (foj)" /> Problem Descriptio原创 2014-03-13 14:14:17 · 480 阅读 · 0 评论 -
1002 hdu (高精度)
A + B Problem II Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 108726 Accepted Submission(s): 20548 Problem Description I have a very原创 2014-03-13 14:14:20 · 856 阅读 · 0 评论 -
hdu(4515)
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4515 向前和向后略有不同 #include #include #include using namespace std; bool leapyear(int year){ return (year%4==0&&year0!=0)||year@0==0; } int month[13]={0原创 2014-03-13 14:16:29 · 512 阅读 · 0 评论 -
骨牌铺方格(2046)
骨牌铺方格 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11419 Accepted Submission(s): 5575 Problem Description 在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输入n ,输出原创 2014-03-13 14:12:02 · 629 阅读 · 0 评论 -
成绩转换程序(2004)
成绩转换 Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 9 Accepted Submission(s) : 7 Problem Description 输入一个百分制的成绩t,将其转换成对应的等级,具体转换规则如下: 90~100为A原创 2014-03-13 14:11:27 · 591 阅读 · 0 评论 -
Codeforces Round #183 (Div. 2) B. Calendar
题目:http://codeforces.com/contest/304/problem/B#include #include #include string> #include string.h> #include #include #include #include #include #include #include #include #inclu原创 2014-03-14 17:21:53 · 672 阅读 · 0 评论 -
hdu(4422)
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4422 这题一开始没有理解题意,输入的n表示已经采摘的山头有几个,在这个时候会依次碰到他们,然后还可以继续采摘没有被采摘过的山,因此,当n #include #include #include #include #include #define ll long long using原创 2014-03-13 14:16:00 · 624 阅读 · 0 评论 -
hdu(4054)Hexadecimal View
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4054 模拟题,因该是这场比赛最水的题了。 #include #include #include #include using namespace std ; char str[4120]; int main() { while (gets(str)) { i原创 2014-03-13 14:15:45 · 539 阅读 · 0 评论 -
hoj 1138
http://acm.hit.edu.cn/hoj/problem/view?id=1138 #include #include #include #include using namespace std; int s ,n ,len; char digit[10]; int dig[5][20]; void drawline(int s,int n){ fo原创 2014-03-13 14:15:03 · 468 阅读 · 0 评论 -
火星A+B
题目:http://ac.jobdu.com/problem.php?pid=1016 有0,0,1 0,0,1 这种情况,开始没注意,结果Runtime error,在杭电上直接就WA,晕—— #include #include #include #include using namespace std; char a[600],b[600]; int as[600]原创 2014-03-13 14:14:52 · 503 阅读 · 0 评论 -
Codeforces Round #242 (Div. 2) A. Squats
简单模拟题。 思路:分别统计原创 2014-04-26 11:09:25 · 570 阅读 · 0 评论 -
密码(hdu 2043)
密码 Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 20 Accepted Submission(s) : 10 Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem原创 2014-03-13 14:13:53 · 588 阅读 · 0 评论 -
137 - ZOJ Monthly, November 2014 - J Poker Face (模拟,递推)
将图形分成几个部分,大框,两个小框,和递归部分(注意方向上下颠倒了)。 然后递推的画出不同规模的图形 。 #include #include #include using namespace std; const int maxn = 1200; char table[15][maxn][maxn]; void draw(int id,int x,int y,int n){ fo原创 2014-11-30 21:04:57 · 800 阅读 · 0 评论