Submission #2650815
Source Code Expand
tower = [0]
for i in range(1, 1000):
tower.append(tower[i-1]+i)
a, b = map(int, input().split())
t = tower[b - a]
print(t - b)
Submission Info
| Submission Time | |
|---|---|
| Task | B - Stone Monument |
| User | nikuzuki |
| Language | Python (3.4.3) |
| Score | 200 |
| Code Size | 141 Byte |
| Status | AC |
| Exec Time | 18 ms |
| Memory | 3060 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01.txt | AC | 17 ms | 3060 KiB |
| 02.txt | AC | 17 ms | 2940 KiB |
| 03.txt | AC | 17 ms | 3060 KiB |
| 04.txt | AC | 17 ms | 2940 KiB |
| 05.txt | AC | 17 ms | 3060 KiB |
| 06.txt | AC | 17 ms | 2940 KiB |
| 07.txt | AC | 17 ms | 3060 KiB |
| 08.txt | AC | 18 ms | 3060 KiB |
| 09.txt | AC | 17 ms | 2940 KiB |
| 10.txt | AC | 17 ms | 2940 KiB |
| sample_01.txt | AC | 17 ms | 3060 KiB |
| sample_02.txt | AC | 17 ms | 3060 KiB |