# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3831 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | gamegame | 3386 |
10 | ksun48 | 3373 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 160 |
5 | -is-this-fft- | 158 |
6 | awoo | 157 |
7 | adamant | 156 |
8 | TheScrasse | 154 |
8 | nor | 154 |
10 | Dominater069 | 153 |
Разбор задач Codeforces Round #734 (Div.3)
Идеи задач: MikeMirzayanov.
#include <bits/stdc++.h>
int main() {
int t;
std::cin >> t;
while (t--) {
int n;
std::cin >> n;
int c2 = n / 3;
int c2_ = c2 + 1;
int c1 = n - 2 * c2;
int c1_ = n - 2 * c2_;
if (std::abs(c1 - c2) > std::abs(c1_ - c2_)) {
c1 = c1_;
c2 = c2_;
}
std::cout << c1 << ' ' << c2 << '\n';
}
return 0;
}
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en3 | MrPaul_TUser | 2021-07-24 14:22:01 | 23 | |||
en2 | MrPaul_TUser | 2021-07-24 12:15:21 | 0 | (published) | ||
ru8 | MrPaul_TUser | 2021-07-24 12:14:48 | 0 | (опубликовано) | ||
en1 | MrPaul_TUser | 2021-07-24 12:13:10 | 7789 | Initial revision for English translation (saved to drafts) | ||
ru7 | MrPaul_TUser | 2021-07-24 12:11:25 | 33 | Мелкая правка: 'N][MAX_N]; // viewed, taken -> fixed-points\nint a[MA' -> 'N][MAX_N];\nint a[MA' | ||
ru6 | MrPaul_TUser | 2021-07-24 12:09:34 | 16 | Мелкая правка: 'Разбор">\n\n</spoile' -> 'Разбор">\n[tutorial:1551F]\n</spoile' | ||
ru5 | MrPaul_TUser | 2021-07-24 12:09:14 | 30 | |||
ru4 | MrPaul_TUser | 2021-07-24 12:08:45 | 6 | Мелкая правка: '\n\ntest\n\n' -> '\n\ntest\ntest\n\n' | ||
ru3 | MrPaul_TUser | 2021-07-24 12:07:38 | 10 | Мелкая правка: '7-24].\n\n[probl' -> '7-24].\n\ntest\n\n[probl' | ||
ru2 | MrPaul_TUser | 2021-07-24 12:03:14 | 7978 | |||
ru1 | MrPaul_TUser | 2021-07-24 11:43:14 | 667 | Первая редакция (сохранено в черновиках) |
Name |
---|