| Show all threads Hide all threads Show all messages Hide all messages |
| HOW TO AVOID TLE. | StatOyL | 1519. Formula 1 | 11 Mar 2014 15:04 | 1 |
I just can't stop tle-ing. Should I use 4-based? Edited by author 11.03.2014 15:04 |
| 2 ADMINS: Funny mistake in sample (+) | Vedernikoff 'Goryinyich' Sergey (HSE: АОП) | 1297. Palindrome | 10 Mar 2014 23:58 | 1 |
'The sample text that could be READED the same in both orders ArozaupalanalapuazorA' =) |
| No subject | I.Smirn0ff | 1297. Palindrome | 10 Mar 2014 18:46 | 1 |
Edited by author 10.03.2014 19:18 Edited by author 10.03.2014 19:18 |
| wa #21 | Morteza Balvardi | 1878. Rubinchik's Cube | 10 Mar 2014 18:43 | 1 |
wa #21 Morteza Balvardi 10 Mar 2014 18:43 can anybody provide a test case for this error my method is quiet like a brute force but it seems i have forgotten sth Edited by author 10.03.2014 18:44 |
| To ADMIN: problem statement is imprecise | ucs6 | 1132. Square Root | 10 Mar 2014 17:59 | 3 |
The problem states that the root should be in the range of (0, n - 1), which looks like saying 0 < x < n - 1. However apparently x can be equal to n - 1! I spent several hours stuck on WA 2 just because of this. Please change it to [0, n - 1] or whatever is precise. Could you please next test case in statement? 9 7 (ans is same as for 2 7, for people to understand that a can be greater than n) Because it's not precise and personally I spent 2-3 hours just to add (%n) stuff. |
| 1001 | Andrey | 1001. Reverse Root | 10 Mar 2014 15:48 | 1 |
1001 Andrey 10 Mar 2014 15:48 give me some test, please. |
| tle | YSYMYTH | 2009. Canteen Line | 9 Mar 2014 22:06 | 1 |
tle YSYMYTH 9 Mar 2014 22:06 |
| wrong answer test#7. 1001. | Andrey | 1001. Reverse Root | 9 Mar 2014 00:37 | 1 |
I got a problem with test #7 but I don't know which is this test. Any know? Edited by author 09.03.2014 01:14 Edited by author 09.03.2014 01:16 Edited by author 09.03.2014 01:16 |
| What is test #1 | d000179 | 1110. Power | 8 Mar 2014 22:05 | 3 |
I got a problem with test #1 but I don't know which is this test. Any know? Thank You've forgot about "If no such numbers exist then output −1." |
| To admins. Test #5 seems to be wrong. | Roman Rubanenko | 1487. Chinese Football | 7 Mar 2014 18:21 | 1 |
According to my program, test #5 contains cycles. Isn't it forbidden by the statement? |
| please help with WA4 | triangle.korbut | 2003. Simple Magic | 7 Mar 2014 18:21 | 4 |
Edited by author 18.01.2014 03:05 |
| explain sample pls | Vit Demidenko | 1315. MDPAR and MIIAR | 7 Mar 2014 16:30 | 1 |
why for D==5 answer is "NO"? |
| WA3 | IgorKoval [PskovSU] | 2007. Mutants versus Machines | 6 Mar 2014 14:23 | 3 |
WA3 IgorKoval [PskovSU] 16 Jan 2014 22:05 zzza zzz answer: a It test help me. It's not test 3. Good luck. =) Re: WA3 IgorKoval [PskovSU] 16 Jan 2014 22:27 And another test. a xxxzzz answer: axxxz Can you show me your solution to the problem? I keep failing wa 14. After all what you provided are weak tests :< |
| a solution | sotamawhat | 2001. Mathematicians and Berries | 5 Mar 2014 19:40 | 1 |
#include <iostream> using namespace std; int main() { int a[3]; int b[3]; int sum,m1,m2; cin>>a[0]>>b[0]; if(a[0]<0||b[0]<0||a[0]>10000||b[0]>10000) exit(1); sum=a[0]+b[0]; cin>>a[1]>>b[1]; if(a[1]<0||b[1]<0||a[1]>10000||b[1]>10000) exit(1); if(b[1]>b[0]||(a[1]+b[1]!=sum))exit(1); cin>>a[2]>>b[2]; if(a[2]<0||b[2]<0||a[2]>10000||b[2]>10000) exit(1); if(a[2]>a[0]||(a[2]+b[2]!=sum))exit(1); m1=a[0]-a[2]; m2=b[0]-b[1]; cout<<m1<<' '<<m2; return 0; } Edited by author 05.03.2014 20:47 |
| Any clue? | CHL,PRC | 1755. Cake | 4 Mar 2014 22:08 | 1 |
|
| Статья Скиданова как он стал чемпионом Урала и завоевал золотые медали Чемпионата мира | disa | | 4 Mar 2014 16:46 | 1 |
Всем привет, ищу статью Скиданова, в которой он рассказывает, как стал чемпионом Урала и завоевал золотые медали Чемпионата мира. В списке публикаций года на snarknews, блогах Скиданова на codeforces и wordpress эту статью не нашел. В статье рассказывается, как Александр забивал на учебу ради тренировок, есть фразы вроде: «Не забывайте, что вы – программисты, а не машины для решения задач», «Вам что, не приходилось препода первый раз видеть на экзамене». Поделитесь ссылкой, кто помнит эту статью. Буду признателен. |
| WA 30 | Disintegrator | 1269. Obscene Words Filter | 3 Mar 2014 21:03 | 1 |
WA 30 Disintegrator 3 Mar 2014 21:03 WA 30. Can anyone help me? Or just give AC code? I have spent to much time on this problem. email: LegionN7@i.ua Update: Accepted. Edited by author 05.03.2014 18:52 |
| TL#1 | IgorTuphanov | 1029. Ministry | 3 Mar 2014 03:32 | 2 |
TL#1 IgorTuphanov 24 Dec 2005 19:26 Может, я чего и не понимаю, но почему подобный код получает TL#1? #include <stdio.h> #include <stdlib.h> #include <string.h> #define inf 2100000000 int a[2][510],res[2][510]; char fy[110][510]; int n,m,min,i1,i2; void Rec(int i, int j) { if (i > 1) { if (fy[i][j] == j) Rec(i-1,j); else Rec(i,fy[i][j]); }; printf("%d\n",j); }; int main(void) { int i,j; scanf("%d%d",&m,&n);
for (j = 1; j <= n; j++) scanf("%d",&a[1][j]); for (i = 1; i <= n; i++) res[1][i] = a[1][i]; for (i = 2; i <= m; i++) for (j = 1; j <= n; j++) res[i][j] = inf; for (i = 1; i < m; i++) { i1 = i%2; i2 = (i+1)%2; for (j = 1; j <= n; j++) scanf("%d",&a[i2][j]); for (j = 1; j <= n; j++) { res[i2][j] = res[i1][j] + a[i2][j]; fy[i+1][j] = j; }; for (j = 2; j <= n; j++) if (res[i2][j] > res[i2][j-1] + a[i2][j]) { res[i2][j] = res[i2][j-1] + a[i2][j]; fy[i+1][j] = j-1; }; for (j = n-1; j >= 1; j--) if (res[i2][j] > res[i2][j+1] + a[i2][j]) { res[i2][j] = res[i+1][j+1] + a[i2][j]; fy[i+1][j] = j+1; }; }; min = inf; for (i = 1; i <= n; i++) if (res[m%2][i] < min) { min = res[m%2][i]; i1 = i; }; Rec(m,i1); return 0; }; Почему scanf и printf. Ты используешь cin и cout. (Because of scanf and printf. It's better to use cin and cout) |
| WA#1 | Slobodianiuk Sergii | 1029. Ministry | 3 Mar 2014 01:17 | 2 |
WA#1 Slobodianiuk Sergii 11 Feb 2014 06:26 I don't know why my program has WA#1. My computer gives correct answer. Please help me, maybe you had the same problem. If you have written your solution in C++ and you use scanf and printf, it would be better to use cin and cout. |
| for WA 3 | BORODA | 1774. Barber of the Army of Mages | 3 Mar 2014 00:28 | 1 |
|