結果

問題 No.3092 3-2-SAT
ユーザー tamatotamato
提出日時 2022-04-01 21:39:47
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 333 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 82,632 KB
実行使用メモリ 78,952 KB
最終ジャッジ日時 2024-04-30 13:27:08
合計ジャッジ時間 3,278 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,180 KB
testcase_01 AC 62 ms
78,392 KB
testcase_02 AC 72 ms
78,352 KB
testcase_03 AC 63 ms
77,892 KB
testcase_04 AC 88 ms
78,952 KB
testcase_05 AC 67 ms
78,112 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 34 ms
53,236 KB
testcase_12 AC 34 ms
52,568 KB
testcase_13 AC 37 ms
52,332 KB
testcase_14 AC 34 ms
52,408 KB
testcase_15 AC 32 ms
52,000 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


def main():
    import sys
    input = sys.stdin.readline

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

    for _ in range(M):
        p, q, a, b = map(int, input().split())
        assert a * b <= 3
        assert ans[p - 1] == a or ans[q-1] == b


if __name__ == '__main__':
    main()
0