- 博客(47)
- 资源 (2)
- 收藏
- 关注
转载 欢迎使用CSDN-markdown编辑器
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦: Markdown和扩展Markdown简洁的语法 代码块高亮 图片链接和图片上传 LaTex数学公式 UML序列图和流程图 离线写博客 导入导出Markdown文件 丰富的快捷键 快捷键 加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
2015-02-28 20:56:13
651
原创 Codeforces Round #284 (Div. 1)
B.Name That Tune peter演奏一个含有n首歌的歌单中的第一首歌,如果你猜到了它的名字,他立即演奏下一首歌,而第i首歌的识别率为pi,意思是如果你没猜过这首歌,那么你多次并猜出它的概率为pi,猜不中继续猜,只有当一首歌演唱的时候才可以猜。求猜完这些歌需要的期望时间 概率DP不会(逃
2014-12-25 02:03:36
804
原创 Codeforces Round #282 (Div. 1)
A. Treasure #include #include char A[110000]; int ans[110000]; int main() { scanf("%s", A); int len = strlen(A); int left = 0, right = 0, q = 0; for (int i = 0; i < len; i++) {
2014-12-14 00:15:01
916
原创 Codeforces Round #280 (Div. 2)
30min的时候提醒电量剩余10%,35min的时候水过B题,关电脑睡觉 updata1:早上6:45开始补题,15min写完C,调到8:12,怎么搞的,思路很清楚,写起来超乱。写完了CF也挂了... 两点原因:重载'
2014-12-02 08:15:43
757
原创 Codeforces Round #279 (Div. 2)
今天这个时间不错啊啊啊啊,快到5点的时候有个隔壁班的女生来问栈(快要考数据结构了),然后屁颠屁颠的帮人家调程序去了。。。落的第三场cf(前两场没补呢sad) C. Hacking Cypher 给出一个由数字组成的字符串,和a,b两个整数,问这个串中是否存在前缀和后缀分别被a,b整除,且前缀和后缀加起来的长度要小等于串的长度
2014-11-23 18:06:30
804
原创 120. Archipelago
120. Archipelago time limit per test: 0.25 sec. memory limit per test: 4096 KB Archipelago Ber-Islands consists of N islands that are vertices of equiangular and equilateral N
2014-11-11 00:26:08
732
原创 119. Magic Pairs
119. Magic Pairs time limit per test: 0.25 sec. memory limit per test: 4096 KB “Prove that for any integer X and Y if 5X+4Y is divided by 23 than 3X+7Y is divided by 23 too.”
2014-11-11 00:03:16
907
原创 118. Digital Root
118. Digital Root time limit per test: 0.25 sec. memory limit per test: 4096 KB Let f(n) be a sum of digits for positive integer n. If f(n) is one-digit number then it is a d
2014-11-10 23:33:37
879
原创 116. Index of super-prime
116. Index of super-prime time limit per test: 0.25 sec. memory limit per test: 4096 KB Let P1, P2, … ,PN, … be a sequence of prime numbers. Super-prime number is such a prime number that its cu
2014-11-10 21:23:58
893
原创 117. Counting
117. Counting time limit per test: 0.25 sec. memory limit per test: 4096 KB Find amount of numbers for given sequence of integer numbers such that after raising them to the M-th power they will
2014-11-10 21:23:17
733
原创 115. Calendar
115. Calendar time limit per test: 0.25 sec. memory limit per test: 4096 KB First year of new millenium is gone away. In commemoration of it write a program that finds the name of the day of the
2014-11-10 21:21:39
672
原创 114. Telecasting station
114. Telecasting station time limit per test: 0.25 sec. memory limit per test: 4096 KB Every city in Berland is situated on Ox axis. The government of the country decided to build new teleca
2014-11-10 16:51:13
808
原创 113. Nearly prime numbers
113. Nearly prime numbers time limit per test: 0.25 sec. memory limit per test: 4096 KB Nearly prime number is an integer positive number for which it is possible to find such
2014-11-10 16:41:23
922
原创 112. a^b-b^a
112. ab-ba time limit per test: 0.25 sec. memory limit per test: 4096 KB You are given natural numbers a and b. Find ab-ba. Input Input contains numbers a and b (1≤a,b≤100).
2014-11-10 16:36:09
843
原创 111. Very simple problem
111. Very simple problem time limit per test: 0.25 sec. memory limit per test: 4096 KB You are given natural number X. Find such maximum integer number that it square is not greater th
2014-11-10 16:29:21
718
原创 110. Dungeon
110. Dungeon time limit per test: 0.25 sec. memory limit per test: 4096 KB The mission of space explorers found on planet M the vast dungeon. One of the dungeon halls is fill with the
2014-11-10 16:25:07
709
原创 109. Magic of David Copperfield II
109. Magic of David Copperfield II time limit per test: 0.25 sec. memory limit per test: 4096 KB The well-known magician David Copperfield loves lo show the following trick: a
2014-11-10 12:30:24
990
原创 108. Self-numbers 2
108. Self-numbers 2 time limit per test: 0.5 sec. memory limit per test: 4096 KB In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any pos
2014-11-08 20:27:45
1017
原创 107. 987654321 problem
107. 987654321 problem time limit per test: 0.25 sec. memory limit per test: 4096 KB For given number N you must output amount of N-digit numbers, such, that last digits of their squar
2014-11-08 01:20:21
1383
原创 106. The equation
106. The equation time limit per test: 0.25 sec. memory limit per test: 4096 KB There is an equation ax + by + c = 0. Given a,b,c,x1,x2,y1,y2 you must determine, how many integer roots of this
2014-11-08 00:32:50
1054
原创 sgu代码
101 102 #include int gcd(int a, int b) { if (!b) return a; return gcd(b,a%b); } int main() { int n; while (scanf("%d", &n) != EOF) { int sum = 1; for (int i = 2;
2014-11-08 00:15:21
879
原创 105. Div 3
105. Div 3 time limit per test: 0.25 sec. memory limit per test: 4096 KB There is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Given first N elements of that sequence. You must d
2014-11-06 02:40:01
954
原创 104. Little shop of flowers
104. Little shop of flowers time limit per test: 0.25 sec. memory limit per test: 4096 KB PROBLEM You want to arrange the window of your flower shop in a most pleasant way. You have F
2014-11-06 02:39:39
1075
原创 103. Traffic Lights
103. Traffic Lights Time limit per test: 0.25 second(s) Memory limit: 4096 kilobytes input: standard output: standard In the city of Dingilville the traffic is arranged in an unus
2014-11-06 02:36:50
1286
原创 102. Coprimes
102. Coprimes time limit per test: 0.25 sec. memory limit per test: 4096 KB For given integer N (1N104) find amount of positive numbers not greater than N that coprime with N. Let us
2014-11-06 02:35:27
998
原创 101. Domino
101. Domino time limit per test: 0.25 sec. memory limit per test: 4096 KB Dominoes – game played with small, rectangular blocks of wood or other material, each identified by a number of
2014-11-06 02:28:44
1162
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅