結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー Konton7
提出日時 2021-01-14 14:17:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 184 ms / 1,500 ms
コード長 476 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-24 04:46:00
合計ジャッジ時間 1,146 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

not_AC_dict = {'WA' : 1, 'TLE' : 2, 'MLE' : 3, 'OLE' :4, 'RE' :5}  
t = int(input())
for i in range(t):
    a = [int (v) for v in input().split()]
    b = [int (v) for v in input().split()]
    s = input()
    ans = []
    for j in range(6):
        if j == 0:
            ans.append(a[j] >= b[j])
        elif j != not_AC_dict[s]:
            ans.append(b[j] == 0)
        else:
            ans.append(a[j] == 0)
    # print(ans)
    print("Yes") if all(ans) else print("No")
0