Submission #19520186


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        n: i32,
    }
    let mut ans = 0;
    for a in 1..n {
        ans += (n - 1) / a;
    }
    println!("{}", ans);
}

Submission Info

Submission Time
Task C - A x B + C
User toga57
Language Rust (1.42.0)
Score 300
Code Size 183 Byte
Status AC
Exec Time 6 ms
Memory 2156 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 37
Set Name Test Cases
Sample 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt
All 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 01-small-01.txt, 01-small-02.txt, 01-small-03.txt, 01-small-04.txt, 01-small-05.txt, 01-small-06.txt, 01-small-07.txt, 01-small-08.txt, 01-small-09.txt, 01-small-10.txt, 02-min-01.txt, 03-random-01.txt, 03-random-02.txt, 03-random-03.txt, 03-random-04.txt, 03-random-05.txt, 05-highly-composite-number-01.txt, 05-highly-composite-number-02.txt, 05-highly-composite-number-03.txt, 05-highly-composite-number-04.txt, 05-highly-composite-number-05.txt, 06-highly-composite-number-01.txt, 06-highly-composite-number-02.txt, 06-highly-composite-number-03.txt, 06-highly-composite-number-04.txt, 06-highly-composite-number-05.txt, 07-highly-composite-number-01.txt, 07-highly-composite-number-02.txt, 07-highly-composite-number-03.txt, 07-highly-composite-number-04.txt, 07-highly-composite-number-05.txt, 08-max-01.txt, 08-max-02.txt, 08-max-03.txt
Case Name Status Exec Time Memory
00-sample-01.txt AC 6 ms 2144 KB
00-sample-02.txt AC 1 ms 1984 KB
00-sample-03.txt AC 6 ms 2000 KB
01-small-01.txt AC 2 ms 2004 KB
01-small-02.txt AC 2 ms 2132 KB
01-small-03.txt AC 1 ms 2048 KB
01-small-04.txt AC 2 ms 2008 KB
01-small-05.txt AC 1 ms 2012 KB
01-small-06.txt AC 2 ms 2152 KB
01-small-07.txt AC 2 ms 2012 KB
01-small-08.txt AC 1 ms 2024 KB
01-small-09.txt AC 1 ms 1932 KB
01-small-10.txt AC 1 ms 2096 KB
02-min-01.txt AC 1 ms 1984 KB
03-random-01.txt AC 2 ms 2096 KB
03-random-02.txt AC 6 ms 2060 KB
03-random-03.txt AC 2 ms 2040 KB
03-random-04.txt AC 2 ms 2100 KB
03-random-05.txt AC 3 ms 1944 KB
05-highly-composite-number-01.txt AC 6 ms 1984 KB
05-highly-composite-number-02.txt AC 4 ms 2156 KB
05-highly-composite-number-03.txt AC 4 ms 2060 KB
05-highly-composite-number-04.txt AC 2 ms 2040 KB
05-highly-composite-number-05.txt AC 1 ms 1980 KB
06-highly-composite-number-01.txt AC 5 ms 2064 KB
06-highly-composite-number-02.txt AC 4 ms 2012 KB
06-highly-composite-number-03.txt AC 5 ms 2004 KB
06-highly-composite-number-04.txt AC 2 ms 1948 KB
06-highly-composite-number-05.txt AC 1 ms 2004 KB
07-highly-composite-number-01.txt AC 5 ms 1884 KB
07-highly-composite-number-02.txt AC 4 ms 1892 KB
07-highly-composite-number-03.txt AC 4 ms 1884 KB
07-highly-composite-number-04.txt AC 2 ms 2096 KB
07-highly-composite-number-05.txt AC 2 ms 2020 KB
08-max-01.txt AC 6 ms 2020 KB
08-max-02.txt AC 6 ms 2024 KB
08-max-03.txt AC 6 ms 1980 KB