Submission #20376175


Source Code Expand

#include <bits/stdc++.h>
typedef long long lint;
using namespace std;

int main() {
    lint k;
    cin >> k;
    lint ans = 0;
    for (lint a = 1; a <= k; a++) {
        for (lint b = 1; a * b <= k; b++) {
            ans += k / (a * b);
        }
    }
    cout << ans << endl;
}

Submission Info

Submission Time
Task A - A*B*C
User mijinko
Language C++ (GCC 9.2.1)
Score 300
Code Size 296 Byte
Status AC
Exec Time 34 ms
Memory 3632 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 10
Set Name Test Cases
Sample s1.txt, s2.txt, s3.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
01.txt AC 33 ms 3592 KiB
02.txt AC 25 ms 3596 KiB
03.txt AC 25 ms 3524 KiB
04.txt AC 13 ms 3524 KiB
05.txt AC 2 ms 3440 KiB
06.txt AC 3 ms 3568 KiB
07.txt AC 34 ms 3596 KiB
s1.txt AC 2 ms 3632 KiB
s2.txt AC 2 ms 3524 KiB
s3.txt AC 11 ms 3584 KiB