|
|
Common BoardDuring BFS I marked (so to not visit them again) only vertexes which were in the path instead of all visited vertexes. The program passed all the tests before 17 although its running time was exponential. 11 1 1 11 2 11 3 11 4 11 5 11 6 11 7 11 8 11 9 11 10 11 11 11 Ans: No 7 0 0 15 A_Small 0 250 20 Big 300 90 3 tB 310 90 2 tA 320 90 1 tC 290 90 2 tA2 280 90 1 tC2 1 1999 90 -100 90 Right answer: Power on. CELL_ID:Big, SIGNAL_LEVEL:RED Cell changed. CELL_ID:tA, SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:VIOLET Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:RED Cell changed. CELL_ID:tA2, SIGNAL_LEVEL:VIOLET Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:RED Cell changed. CELL_ID:A_Small, SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:ORANGE who know this problem!Time limit exceeded 7 help me please Edited by author 13.06.2013 22:47 Edited by author 13.06.2013 22:48 it may be stack overflow.can you speak chinese??? scanf("%lld%lld%lld%lld%lld%lld", &P, &Q, &SL, &SC, &X, &Y); => WA 16 cin >> P >> Q >> SL >> SC >> X >> Y; => AC Is there anyone who can explain this? I just can't stop tle-ing. Should I use 4-based? Edited by author 11.03.2014 15:04 'The sample text that could be READED the same in both orders ArozaupalanalapuazorA' =) Edited by author 10.03.2014 19:18 Edited by author 10.03.2014 19:18 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 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. give me some test, please. 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 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." According to my program, test #5 contains cycles. Isn't it forbidden by the statement? Edited by author 18.01.2014 03:05 why for D==5 answer is "NO"? zzza zzz answer: a It test help me. It's not test 3. Good luck. =) 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 :< #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 Всем привет, ищу статью Скиданова, в которой он рассказывает, как стал чемпионом Урала и завоевал золотые медали Чемпионата мира. В списке публикаций года на snarknews, блогах Скиданова на codeforces и wordpress эту статью не нашел. В статье рассказывается, как Александр забивал на учебу ради тренировок, есть фразы вроде: «Не забывайте, что вы – программисты, а не машины для решения задач», «Вам что, не приходилось препода первый раз видеть на экзамене». Поделитесь ссылкой, кто помнит эту статью. Буду признателен. |
|
|