- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
#define pb push_back
#define ll long long#define forit(it, r) for (auto it = r.begin(); it != r.end(); it++)
#define forn(i, n) for (int i = 0; i < n; ++i)
#define forn1(i, n) for (int i = 1; i < n; ++i)
#define FOR(i, m, n) for (int i = m; i < n; ++i)
#define ROF(i, m, n) for (int i = m; i >= n; --i)
#define fori(n) for (int i = 0; i < n; ++i)
#define forj(n) for (int j = 0; j < n; ++j)
// ...
string s;
int k;
while (i >= base)
k = i % base,
s.pb(k > 9 ? k + 'A' - 10 : k + 48),
i /= base;
k = i % base;
s.pb(k > 9 ? k + 'A' - 10 : k + 48);
// ...
fori(s.size())
if (i < s.size() - 1 && s[i] == '\\' && (s[i + 1] == 'n' || s[i + 1] == -47))
{
ret.append("%0A");
i += 1 + (s[i + 1] == -47);//-47 -- russian t, because has the same place with n (\n == \t_russian)
}
else
ret.append("%" + itoa((s[i] + 256) % 256, 16));
Олимпиадники... Олимпиадники повсюду...