Submission #3569786
Source Code Expand
import sys def parse_inputs(): lines = [] while True: line = input() if line: F, S = line.split() lines.append([F, S]) else: break return lines[0], lines[1:] def main(): ''' N = 3 Q = 12 years = [5, 10, 15] names = ['sogo5gokan', 'sogo10gokan', 'sogo15gokan'] ''' first, rest = parse_inputs() N = int(first[0]) Q = int(first[1]) years = list() names = list() for row in rest: years.append(int(row[0])) names.append(row[1]) latest = True L = len(years) for i in range(L-1): if years[i] <= Q and Q < years[i+1]: latest = False print(names[i]) if latest: print(names[-1]) if __name__ == '__main__': main()
Submission Info
Submission Time | |
---|---|
Task | A - 旧総合研究7号館 |
User | marugeso530 |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 694 Byte |
Status | RE |
Exec Time | 18 ms |
Memory | 3064 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 10_small_0.txt, 10_small_1.txt, 10_small_2.txt, 10_small_3.txt, 10_small_4.txt, 10_small_5.txt, 10_small_6.txt, 10_small_7.txt, 10_small_8.txt, 10_small_9.txt, 20_large_0.txt, 20_large_1.txt, 20_large_2.txt, 20_large_3.txt, 20_large_4.txt, 20_large_5.txt, 20_large_6.txt, 20_large_7.txt, 20_large_8.txt, 20_large_9.txt, 30_random_0.txt, 30_random_1.txt, 30_random_2.txt, 30_random_3.txt, 30_random_4.txt, 30_random_5.txt, 30_random_6.txt, 30_random_7.txt, 30_random_8.txt, 30_random_9.txt, 40_max_0.txt, 40_max_1.txt, 40_max_2.txt, 40_max_3.txt, 40_max_4.txt, 40_max_5.txt, 40_max_6.txt, 40_max_7.txt, 40_max_8.txt, 40_max_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | RE | 18 ms | 3064 KB |
00_sample_01.txt | RE | 17 ms | 3064 KB |
00_sample_02.txt | RE | 17 ms | 3064 KB |
10_small_0.txt | RE | 18 ms | 3064 KB |
10_small_1.txt | RE | 18 ms | 3064 KB |
10_small_2.txt | RE | 17 ms | 3064 KB |
10_small_3.txt | RE | 17 ms | 3064 KB |
10_small_4.txt | RE | 18 ms | 3064 KB |
10_small_5.txt | RE | 17 ms | 3064 KB |
10_small_6.txt | RE | 17 ms | 3064 KB |
10_small_7.txt | RE | 18 ms | 3064 KB |
10_small_8.txt | RE | 17 ms | 3064 KB |
10_small_9.txt | RE | 17 ms | 3064 KB |
20_large_0.txt | RE | 18 ms | 3064 KB |
20_large_1.txt | RE | 18 ms | 3064 KB |
20_large_2.txt | RE | 18 ms | 3064 KB |
20_large_3.txt | RE | 18 ms | 3064 KB |
20_large_4.txt | RE | 17 ms | 3064 KB |
20_large_5.txt | RE | 17 ms | 3064 KB |
20_large_6.txt | RE | 17 ms | 3064 KB |
20_large_7.txt | RE | 17 ms | 3064 KB |
20_large_8.txt | RE | 18 ms | 3064 KB |
20_large_9.txt | RE | 18 ms | 3064 KB |
30_random_0.txt | RE | 18 ms | 3064 KB |
30_random_1.txt | RE | 17 ms | 3064 KB |
30_random_2.txt | RE | 18 ms | 3064 KB |
30_random_3.txt | RE | 17 ms | 3064 KB |
30_random_4.txt | RE | 18 ms | 3064 KB |
30_random_5.txt | RE | 18 ms | 3064 KB |
30_random_6.txt | RE | 17 ms | 3064 KB |
30_random_7.txt | RE | 18 ms | 3064 KB |
30_random_8.txt | RE | 18 ms | 3064 KB |
30_random_9.txt | RE | 18 ms | 3064 KB |
40_max_0.txt | RE | 18 ms | 3064 KB |
40_max_1.txt | RE | 18 ms | 3064 KB |
40_max_2.txt | RE | 18 ms | 3064 KB |
40_max_3.txt | RE | 18 ms | 3064 KB |
40_max_4.txt | RE | 18 ms | 3064 KB |
40_max_5.txt | RE | 18 ms | 3064 KB |
40_max_6.txt | RE | 18 ms | 3064 KB |
40_max_7.txt | RE | 17 ms | 3064 KB |
40_max_8.txt | RE | 18 ms | 3064 KB |
40_max_9.txt | RE | 18 ms | 3064 KB |