結果

問題 No.3092 3-2-SAT
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2022-04-01 21:56:17
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 202 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 82,408 KB
実行使用メモリ 79,132 KB
最終ジャッジ日時 2024-04-30 13:54:05
合計ジャッジ時間 3,342 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
52,884 KB
testcase_01 AC 74 ms
78,624 KB
testcase_02 AC 91 ms
78,628 KB
testcase_03 AC 86 ms
78,112 KB
testcase_04 AC 119 ms
79,132 KB
testcase_05 AC 84 ms
78,292 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 33 ms
53,348 KB
testcase_12 AC 32 ms
53,856 KB
testcase_13 AC 31 ms
52,820 KB
testcase_14 AC 33 ms
52,280 KB
testcase_15 AC 35 ms
52,444 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
ans = [1]*N

for i in range(M):
    p,q,a,b = map(int,input().split())
    assert 1 <= a*b <= 3

    p -= 1
    q -= 1
    assert ans[p] == a or ans[q] == b

print (*ans)
0