|
|
вернуться в форумIf You have WA 13 Послано 107th 26 авг 2008 12:09 look at overflow!!! in test 13 there are meny than 32 different dishes!!! my bug was: int h = j; ... d[i] |= (1 << h); change it to __int64 h = __int64(j); ... d[i] |= (__int64(1) << h); Edited by author 26.08.2008 17:18 Re: If You have WA 13 Limit for dishes is 100. Why __int64 (64 bit) should be better than int (32 bit)? In both cases you need an array, don't you? Re: If You have WA 13 Послано Abid29 16 апр 2021 13:44 3 4 a 4 4 b 1 1 c 3 3 |
|
|