How to calculate ?
Constraints are 1 ≤ N, M ≤ 2 * 109 and 1 ≤ x ≤ 50 and time limit is 1 second Please can someone help?
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
One problem from Number theory
How to calculate ?
Constraints are 1 ≤ N, M ≤ 2 * 109 and 1 ≤ x ≤ 50 and time limit is 1 second Please can someone help?
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en14 | Mamedov | 2016-08-01 13:19:11 | 0 | (published) | ||
en13 | Mamedov | 2016-08-01 12:29:46 | 0 | Tiny change: ' * 10^{9}$ and $1 \le x ' -> ' * 10^{9}$, $1 \le x ' | ||
en12 | Mamedov | 2016-08-01 12:29:15 | 5 | Tiny change: ' * 10^{9}$ and $1 \le x ' -> ' * 10^{9}$, $1 \le x ' | ||
en11 | Mamedov | 2016-08-01 12:28:46 | 0 | Tiny change: 's 1 second \b\nPlease c' -> 's 1 second.\n\nPlease c' | ||
en10 | Mamedov | 2016-08-01 12:28:28 | 6 | Tiny change: 's 1 second \b\nPlease c' -> 's 1 second.\n\nPlease c' | ||
en9 | Mamedov | 2016-08-01 12:27:25 | 4 | |||
en8 | Mamedov | 2016-08-01 12:24:06 | 8 | Tiny change: ' \bmod M$ this sum?\n\nConst' -> ' \bmod M$ ?\n\nConst' | ||
en7 | Mamedov | 2016-08-01 12:23:41 | 82 | |||
en6 | Mamedov | 2016-08-01 12:22:43 | 49 | |||
en5 | Mamedov | 2016-08-01 12:21:55 | 175 | (saved to drafts) | ||
en4 | Mamedov | 2016-07-31 12:19:53 | 0 | (published) | ||
en3 | Mamedov | 2016-07-31 12:17:47 | 28 | Tiny change: '1 ≤ x ≤ 50;' -> '1 ≤ x ≤ 50.\nPlease can someone help?' | ||
en2 | Mamedov | 2016-07-31 12:09:29 | 0 | Tiny change: 'his sum?\nConstrai' -> 'his sum?\n\nConstrai' (saved to drafts) | ||
en1 | Mamedov | 2016-07-31 12:07:42 | 196 | Initial revision (published) |
Name |
---|