{"problem":{"name":"Simple Math","description":{"content":"Given are three positive integers $A$, $B$, and $C$. Compute the following value modulo $998244353$: $\\sum_{a=1}^{A} \\sum_{b=1}^{B} \\sum_{c=1}^{C} abc$","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"arc107_a"},"statements":[{"statement_type":"Markdown","content":"Given are three positive integers $A$, $B$, and $C$. Compute the following value modulo $998244353$:\n$\\sum_{a=1}^{A} \\sum_{b=1}^{B} \\sum_{c=1}^{C} abc$\n\n## Constraints\n\n*   $1 \\leq A, B, C \\leq 10^9$\n\n## Input\n\nInput is given from standard input in the following format:\n\n$A$ $B$ $C$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"arc107_a","tags":[],"sample_group":[["1 2 3","18\n\nWe have: $(1 \\times 1 \\times 1) + (1 \\times 1 \\times 2) + (1 \\times 1 \\times 3) + (1 \\times 2 \\times 1) + (1 \\times 2 \\times 2) + (1 \\times 2 \\times 3) = 1 + 2 + 3 + 2 + 4 + 6 = 18$."],["1000000000 987654321 123456789","951633476\n\nBe sure to compute the value modulo $998244353$."]],"created_at":"2026-03-03 11:01:13"}}