Submission #162544
Source Code Expand
def conv(s): ss = str(s); ret = [] for i in xrange(len(ss)): if ord(ss[i])<ord('4'): ret.append(ss[i]) else: ret.append(chr(ord(ss[i])-(1 if ord(ss[i])<ord('9') else 2))) return int("".join(ret), 8) a, b = map(int, raw_input().split()) print (b - (a-1)) - (conv(b) - conv(a-1))
Submission Info
Submission Time | |
---|---|
Task | D - 禁止された数字 |
User | yaketake08 |
Language | Python (2.7.3) |
Score | 0 |
Code Size | 340 Byte |
Status | WA |
Exec Time | 54 ms |
Memory | 3396 KB |
Judge Result
Set Name | Sample | Subtask1 | Subtask2 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 30 | 0 / 70 | ||||||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
Sample | subtask0_sample01.txt, subtask0_sample02.txt, subtask0_sample03.txt, subtask0_sample04.txt |
Subtask1 | subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask0_sample01.txt, subtask0_sample02.txt, subtask0_sample03.txt |
Subtask2 | subtask0_sample01.txt, subtask0_sample02.txt, subtask0_sample03.txt, subtask0_sample04.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask2_01.txt, subtask2_02.txt, subtask2_03.txt, subtask2_04.txt, subtask2_05.txt, subtask2_06.txt, subtask2_07.txt, subtask2_08.txt, subtask2_09.txt, subtask2_10.txt, subtask2_11.txt, subtask2_12.txt, subtask2_13.txt, subtask2_14.txt, subtask2_15.txt, subtask2_16.txt, subtask2_17.txt, subtask2_18.txt, subtask2_19.txt, subtask2_20.txt, subtask2_21.txt, subtask2_22.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
subtask0_sample01.txt | AC | 49 ms | 3388 KB |
subtask0_sample02.txt | AC | 49 ms | 3384 KB |
subtask0_sample03.txt | AC | 50 ms | 3384 KB |
subtask0_sample04.txt | AC | 50 ms | 3392 KB |
subtask1_01.txt | AC | 49 ms | 3392 KB |
subtask1_02.txt | AC | 49 ms | 3384 KB |
subtask1_03.txt | AC | 50 ms | 3368 KB |
subtask1_04.txt | WA | 52 ms | 3384 KB |
subtask1_05.txt | WA | 50 ms | 3380 KB |
subtask1_06.txt | WA | 49 ms | 3396 KB |
subtask1_07.txt | WA | 50 ms | 3380 KB |
subtask1_08.txt | WA | 54 ms | 3320 KB |
subtask1_09.txt | WA | 49 ms | 3380 KB |
subtask1_10.txt | AC | 50 ms | 3380 KB |
subtask1_11.txt | WA | 49 ms | 3388 KB |
subtask1_12.txt | WA | 49 ms | 3384 KB |
subtask1_13.txt | AC | 49 ms | 3324 KB |
subtask2_01.txt | AC | 49 ms | 3300 KB |
subtask2_02.txt | AC | 49 ms | 3384 KB |
subtask2_03.txt | WA | 50 ms | 3324 KB |
subtask2_04.txt | WA | 50 ms | 3384 KB |
subtask2_05.txt | WA | 48 ms | 3372 KB |
subtask2_06.txt | WA | 49 ms | 3320 KB |
subtask2_07.txt | WA | 49 ms | 3384 KB |
subtask2_08.txt | WA | 48 ms | 3380 KB |
subtask2_09.txt | WA | 49 ms | 3388 KB |
subtask2_10.txt | WA | 47 ms | 3324 KB |
subtask2_11.txt | WA | 49 ms | 3384 KB |
subtask2_12.txt | WA | 49 ms | 3384 KB |
subtask2_13.txt | WA | 49 ms | 3384 KB |
subtask2_14.txt | WA | 48 ms | 3384 KB |
subtask2_15.txt | WA | 50 ms | 3324 KB |
subtask2_16.txt | WA | 49 ms | 3328 KB |
subtask2_17.txt | WA | 49 ms | 3380 KB |
subtask2_18.txt | WA | 49 ms | 3384 KB |
subtask2_19.txt | WA | 48 ms | 3324 KB |
subtask2_20.txt | WA | 49 ms | 3384 KB |
subtask2_21.txt | WA | 47 ms | 3320 KB |
subtask2_22.txt | WA | 50 ms | 3328 KB |