|
|
back to board[code deleted] Edited by author 16.04.2007 22:52 MAY BE ANY ERROR IN ALGORITHM! MYBE YOU KILL YOUR SELF? DO NOT USE BIG LETTERS! IT'S VERY VERY BAD! AT FIRST IT ISN'T BIG,AT 2-ND DON'T SAY ME WHAT I MUST DO! think about this case when n = 1000, and m = 32000 use % operation THANK,I'LL THINK. look, n = 1000, m = 32000 seq = new __int64 [n]; // now seq is an array of 1000 int64 j = 0; for (i = n-m; i < 10; i++) // this cycle will be executed 31000 times printf("%I64d",seq[j++]) // and there will be acces vialation because j <= 31000, but seq is array [0..999] PS: it is very difficult to read text of your messages beacause of BIG LETTERS. I'ts really true. I spent more then 8 hour in my chair and look at my comptuter's monitor. my eyes very tired, but you don't listen in me. Edited by author 15.04.2007 23:22 [deleted] Edited by author 16.04.2007 22:53 3 4 4 3 5 1 you program don't work on these tests and don't combine cout/cin with printf/scanf Thank!!!but 11 ≤ n ≤ 1000!can n be <11? Edited by author 16.04.2007 21:13 Edited by author 16.04.2007 21:16 oh, sorry. of course not. n>=11 try this [ deleted] Edited by author 16.04.2007 22:54 thank you very much for good idea!AC now! Edited by author 16.04.2007 22:51 |
|
|