Could anyone help me out with Permutation Encryption?
The following is my code so far. pastebin.com/DDfN5Syt
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
Could anyone help me out with Permutation Encryption?
The following is my code so far. pastebin.com/DDfN5Syt
Name |
---|
I had a lot of problems with this. I don't know if this helps, but my answer result in WA, when using for(int i = 0; i<n; i++){ scanf("%d", tmp); // code... } scanf("\n"); string line; getline(cin, line); // code...
but when I changed "scanf("\n");" with "cin.ignore();" it suddenly worked. I don't know why, and I don't know if this helps you. I suppose it had a problem with the compiler of the judge or a weird test case that made something funny. Hope it helps... 4 months later.