63842023-11-26 12:44:51Error42Számjegy keveréscpp17Wrong answer 32/403ms4340 KiB
// Code of `CWM`, only "debugged" (added a '\n' in desperation) by `Error42`

#include <iostream>

using namespace std;

int main()
{
    string s;
    cin >> s;
    long long res = s.size() * (s.size() - 1) / 2 * 9;
    for (size_t i = 0; i < s.size(); i++)
    {
        res += s[i] - '0';
    }
    cout << res << "\n";
}
SubtaskSumTestVerdictTimeMemory
base32/40
1Accepted0/03ms1816 KiB
2Accepted0/03ms2052 KiB
3Accepted0/03ms2220 KiB
4Accepted2/23ms2460 KiB
5Accepted2/23ms2676 KiB
6Accepted2/23ms2748 KiB
7Accepted2/23ms2888 KiB
8Accepted2/23ms3112 KiB
9Accepted2/23ms3292 KiB
10Accepted2/23ms3524 KiB
11Accepted4/43ms3612 KiB
12Wrong answer0/43ms3740 KiB
13Accepted2/23ms3856 KiB
14Accepted2/23ms3980 KiB
15Accepted2/23ms4060 KiB
16Wrong answer0/23ms4036 KiB
17Wrong answer0/23ms4032 KiB
18Accepted2/23ms4156 KiB
19Accepted3/33ms4252 KiB
20Accepted3/33ms4340 KiB