提出 #461989


ソースコード 拡げる

lines = []
for i in range(int(input())):
    lines.append(input())
    
A = input()[2]
a = input()[2]
B, b, x, c, C = input()
d = input()[2]
D = input()[2]

set_a = set()
pos1 = 0 if a == '↓' else 1
pos2 = 0 if pos1 else 1
for line in lines:
    if line[pos1] == A:
        set_a.add(line[pos2])

set_b = set()
pos1 = 0 if b == '→' else 1
pos2 = 0 if pos1 else 1
for line in lines:
    if line[pos1] == B:
        set_b.add(line[pos2])
        
set_c = set()
pos1 = 0 if c == '←' else 1
pos2 = 0 if pos1 else 1
for line in lines:
    if line[pos1] == C:
        set_c.add(line[pos2])
        
set_d = set()
pos1 = 0 if d == '↑' else 1
pos2 = 0 if pos1 else 1
for line in lines:
    if line[pos1] == D:
        set_d.add(line[pos2])
        
print(list(set_a & set_b & set_c & set_d)[0])

提出情報

提出日時
問題 E - 必殺!無限覇王斬!
ユーザ matsulib
言語 Python (3.4.2)
得点 100
コード長 832 Byte
結果 AC
実行時間 503 ms
メモリ 10096 KiB

ジャッジ結果

セット名 All
得点 / 配点 100 / 100
結果
AC × 22
セット名 テストケース
All 05_sample_00.txt, 05_sample_01.txt, 05_sample_02.txt, 05_sample_03.txt, 05_sample_04.txt, 10_min_00.txt, 10_min_01.txt, 10_min_02.txt, 20_max_00.txt, 20_max_01.txt, 20_max_02.txt, 90_random_00.txt, 90_random_01.txt, 90_random_02.txt, 90_random_03.txt, 90_random_04.txt, 90_random_05.txt, 90_random_06.txt, 90_random_07.txt, 90_random_08.txt, 90_random_09.txt, 99_medium_00.txt
ケース名 結果 実行時間 メモリ
05_sample_00.txt AC 503 ms 7256 KiB
05_sample_01.txt AC 105 ms 6804 KiB
05_sample_02.txt AC 107 ms 6888 KiB
05_sample_03.txt AC 105 ms 6744 KiB
05_sample_04.txt AC 107 ms 6740 KiB
10_min_00.txt AC 106 ms 6756 KiB
10_min_01.txt AC 106 ms 6760 KiB
10_min_02.txt AC 106 ms 6760 KiB
20_max_00.txt AC 270 ms 10040 KiB
20_max_01.txt AC 267 ms 9924 KiB
20_max_02.txt AC 267 ms 9924 KiB
90_random_00.txt AC 125 ms 7140 KiB
90_random_01.txt AC 269 ms 9924 KiB
90_random_02.txt AC 200 ms 8548 KiB
90_random_03.txt AC 271 ms 9924 KiB
90_random_04.txt AC 269 ms 9924 KiB
90_random_05.txt AC 273 ms 10036 KiB
90_random_06.txt AC 275 ms 9924 KiB
90_random_07.txt AC 276 ms 10096 KiB
90_random_08.txt AC 279 ms 10044 KiB
90_random_09.txt AC 283 ms 9920 KiB
99_medium_00.txt AC 280 ms 10056 KiB