Submission #30149824


Source Code Expand

use proconio::input;

fn main() {
    input! {
        a: usize,
        b: usize,
        c: usize,
    };
    let modp = 998_244_353;
    let f = |x| (x + 1) * x / 2 % modp;
    let ans = f(a) * f(b) % modp * f(c) % modp;
    println!("{}", ans);
}

Submission Info

Submission Time
Task 088 - Simple Math
User bouzuya
Language Rust (1.42.0)
Score 300
Code Size 251 Byte
Status AC
Exec Time 2 ms
Memory 2124 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 8
Set Name Test Cases
Sample example_00, example_01
All example_00, example_01, max_random_00, max_random_01, max_random_02, small_00, small_01, small_02
Case Name Status Exec Time Memory
example_00 AC 2 ms 1976 KiB
example_01 AC 1 ms 1952 KiB
max_random_00 AC 1 ms 2060 KiB
max_random_01 AC 1 ms 2108 KiB
max_random_02 AC 2 ms 2044 KiB
small_00 AC 1 ms 2124 KiB
small_01 AC 1 ms 2000 KiB
small_02 AC 1 ms 2084 KiB