Submission #3556579
Source Code Expand
n,m = map(int,input().split()) print(n*(n+1)*(2n+1)//6%m)
Submission Info
Submission Time | |
---|---|
Task | A - 団子とうさぎ |
User | minefy |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 58 Byte |
Status | RE |
Exec Time | 18 ms |
Memory | 2940 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 50 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | case_000.txt, case_001.txt, case_002.txt, case_003.txt, case_004.txt, case_005.txt, case_006.txt, case_007.txt, case_008.txt, case_009.txt, case_010.txt, case_011.txt, case_012.txt, case_013.txt, case_014.txt, case_015.txt, case_016.txt, case_017.txt, case_018.txt, case_019.txt, case_020.txt, case_021.txt, case_022.txt, case_023.txt, case_024.txt, case_025.txt, case_026.txt, case_027.txt, case_028.txt, case_029.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
case_000.txt | RE | 17 ms | 2940 KB |
case_001.txt | RE | 17 ms | 2940 KB |
case_002.txt | RE | 17 ms | 2940 KB |
case_003.txt | RE | 17 ms | 2940 KB |
case_004.txt | RE | 17 ms | 2940 KB |
case_005.txt | RE | 17 ms | 2940 KB |
case_006.txt | RE | 17 ms | 2940 KB |
case_007.txt | RE | 17 ms | 2940 KB |
case_008.txt | RE | 17 ms | 2940 KB |
case_009.txt | RE | 17 ms | 2940 KB |
case_010.txt | RE | 17 ms | 2940 KB |
case_011.txt | RE | 17 ms | 2940 KB |
case_012.txt | RE | 17 ms | 2940 KB |
case_013.txt | RE | 17 ms | 2940 KB |
case_014.txt | RE | 17 ms | 2940 KB |
case_015.txt | RE | 17 ms | 2940 KB |
case_016.txt | RE | 17 ms | 2940 KB |
case_017.txt | RE | 17 ms | 2940 KB |
case_018.txt | RE | 17 ms | 2940 KB |
case_019.txt | RE | 18 ms | 2940 KB |
case_020.txt | RE | 18 ms | 2940 KB |
case_021.txt | RE | 17 ms | 2940 KB |
case_022.txt | RE | 17 ms | 2940 KB |
case_023.txt | RE | 17 ms | 2940 KB |
case_024.txt | RE | 17 ms | 2940 KB |
case_025.txt | RE | 17 ms | 2940 KB |
case_026.txt | RE | 17 ms | 2940 KB |
case_027.txt | RE | 17 ms | 2940 KB |
case_028.txt | RE | 17 ms | 2940 KB |
case_029.txt | RE | 18 ms | 2940 KB |