|
|
back to boardTo admins Why does this code get crash on test 27? ... int N; scanf("%d", &N); int x; int y; int z; for(int i = 0, i < N; ++i) { scanf("%d%d%d", &x, &y, &z); if(z != 2 && z != 1) throw 25; ... Re: To admins Is it so hard to answer me?!!! Re: To admins Maybe Crash is somewhere else? Re: To admins #include <cstdio> int main() { int N,i; scanf("%d", &N); if (N<1 || N>10000) throw 25; int x; int y; int z; for(i = 0; i < N; ++i) { scanf("%d%d%d", &x, &y, &z); if (z != 2 && z != 1) throw 25; if (x<0 || x>10000 || y<0 || y>10000) throw 25; } return 0; } This code doesn't got Crash on any test. Look for a bug in your program. Edited by author 01.12.2007 12:30 In russian variant... В следующих K строках выведите через пробел числа ai и bi — величины, которыми могут руководствоваться "экперты" при принятии решения. |
|
|