結果
問題 | No.1317 月曜日の朝、WAを出した |
ユーザー |
![]() |
提出日時 | 2020-12-17 03:36:12 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 179 ms / 1,500 ms |
コード長 | 460 bytes |
コンパイル時間 | 340 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 78,080 KB |
最終ジャッジ日時 | 2024-09-20 06:07:54 |
合計ジャッジ時間 | 1,186 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#!/usr/bin/env python3## No.1317 月曜日の朝、WAを出した#import sys, os, mathdef read_ints(): return list(map(int, input().split()))m = dict((x, i) for i, x in enumerate('AC WA TLE MLE OLE RE'.split()))T = int(input())for _ in range(T):a = read_ints()b = read_ints()x = m[input()]ans = Trueif a[x] != 0:ans = Falsefor i in range(1, len(a)):if i == x: continueif b[i] != 0: ans = Falseprint("Yes" if ans else "No")