72572024-01-05 16:06:48anonSzámjegy keveréscpp17Wrong answer 6/403ms3944 KiB
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define FastIO ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
typedef long long ll;
using namespace std;
int main() {
    FastIO;
    string N;
    cin >> N;
    cout << reduce(all(N)) - N.size() * '0' + N.size() / 2 * 9 << '\n';
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base6/40
1Accepted0/03ms1824 KiB
2Accepted0/03ms2056 KiB
3Wrong answer0/02ms2144 KiB
4Accepted2/23ms2368 KiB
5Accepted2/23ms2556 KiB
6Accepted2/23ms2772 KiB
7Wrong answer0/22ms2848 KiB
8Wrong answer0/23ms2752 KiB
9Wrong answer0/23ms2888 KiB
10Wrong answer0/23ms3088 KiB
11Wrong answer0/43ms3304 KiB
12Wrong answer0/42ms3384 KiB
13Wrong answer0/23ms3412 KiB
14Wrong answer0/23ms3412 KiB
15Wrong answer0/23ms3668 KiB
16Wrong answer0/23ms3864 KiB
17Wrong answer0/23ms3944 KiB
18Wrong answer0/23ms3824 KiB
19Wrong answer0/33ms3828 KiB
20Wrong answer0/33ms3824 KiB