| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| Why this code on java does'n work/Почему код на java не работает(не проходит проверку) | Big_Brother | 1877. Велосипедные коды | 14 мар 2014 13:33 | 3 |
import java.util.Scanner; public class BicycleCode{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int firstCode = sc.nextInt(); int secondeCode = sc.nextInt();
if(firstCode%2==0 && secondeCode%2!=0){ System.out.println("yes"); }else if(firstCode%2!=0 && secondeCode%2==0){ System.out.println("no"); } } } the correct code: import java.util.Scanner; public class BicycleCode{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int firstCode = sc.nextInt(); int secondeCode = sc.nextInt(); if(firstCode%2==0 || secondeCode%2!=0){ System.out.println("yes"); }else if(firstCode%2!=0 || secondeCode%2==0){ System.out.println("no"); } } 1 Edited by author 14.03.2014 13:34 |
| WA #9 | Facundo | 1471. Расстояние в дереве | 14 мар 2014 03:50 | 3 |
WA #9 Facundo 1 фев 2013 06:48 Anyone knows what's test 9 ? I'm getting WA but my algo work in all cases I test. what was the problem i am getting wa #9 aswell |
| WA15 | Vladislav | 1029. Министерство | 14 мар 2014 00:37 | 1 |
WA15 Vladislav 14 мар 2014 00:37 If you have WA15 use for dp and for fees long long, because not optimal answer for official, which can be before program find optimal answer, may be more then 10^9. |
| How can I show numbers after dot? Which function I have to use? | lareon | 1562. Ананас | 14 мар 2014 00:07 | 3 |
printf("%0.6f", number) in c/c++ or writeln(number:0:6) in pascal p.s. checkout the other online training/judge website www.z-trening.com, it has more feedback when you submit a problem Note that scanf uses "%lf" to read double, but printf must use "%f". It looks like printf with "%lf" does not work on Windows, although it works on Linux. |
| TLE17/21 | ASK | 1774. Парикмахер армии магов | 13 мар 2014 17:20 | 1 |
During 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 |
| Tell me the right answer for this test | ValentinPerm | 1415. Мобильная жизнь | 13 мар 2014 14:04 | 2 |
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 |
| why Time limit exceeded 7? how to solve this problem? | Ilxom Raximov (UrSU) | 1057. Количество степеней | 12 мар 2014 16:17 | 4 |
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 vs cin | pmartynov | 1286. Космолёт марки ВАЗ | 11 мар 2014 22:30 | 1 |
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? |
| HOW TO AVOID TLE. | StatOyL | 1519. Формула 1 | 11 мар 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. Палиндромы | 10 мар 2014 23:58 | 1 |
'The sample text that could be READED the same in both orders ArozaupalanalapuazorA' =) |
| No subject | I.Smirn0ff | 1297. Палиндромы | 10 мар 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. Кубик Рубинчика | 10 мар 2014 18:43 | 1 |
wa #21 Morteza Balvardi 10 мар 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 | Xun Li | 1132. Квадратный корень | 10 мар 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 Rybakov | 1001. Обратный корень | 10 мар 2014 15:48 | 1 |
1001 Andrey Rybakov 10 мар 2014 15:48 give me some test, please. |
| tle | YSYMYTH | 2009. Очереди в столовой | 9 мар 2014 22:06 | 1 |
tle YSYMYTH 9 мар 2014 22:06 |
| wrong answer test#7. 1001. | Andrey Rybakov | 1001. Обратный корень | 9 мар 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. Степень | 8 мар 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. | Looksery DotaClub | 1487. Китайский футбол | 7 мар 2014 18:21 | 1 |
According to my program, test #5 contains cycles. Isn't it forbidden by the statement? |
| please help with WA4 | Rtriangle | 2003. Простая магия | 7 мар 2014 18:21 | 4 |
Edited by author 18.01.2014 03:05 |
| explain sample pls | Vit Demidenko | 1315. ПДВАС и ПВИПАС | 7 мар 2014 16:30 | 1 |
why for D==5 answer is "NO"? |