結果

問題 No.3092 3-2-SAT
ユーザー tamatotamato
提出日時 2022-04-01 21:41:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 361 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 79,900 KB
最終ジャッジ日時 2023-08-12 18:22:32
合計ジャッジ時間 3,931 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,248 KB
testcase_01 AC 101 ms
79,596 KB
testcase_02 AC 106 ms
79,300 KB
testcase_03 AC 101 ms
78,968 KB
testcase_04 AC 120 ms
79,900 KB
testcase_05 AC 101 ms
79,208 KB
testcase_06 AC 101 ms
77,180 KB
testcase_07 AC 109 ms
76,608 KB
testcase_08 AC 95 ms
77,180 KB
testcase_09 AC 104 ms
76,992 KB
testcase_10 AC 93 ms
77,304 KB
testcase_11 AC 72 ms
71,268 KB
testcase_12 AC 73 ms
71,480 KB
testcase_13 AC 72 ms
71,444 KB
testcase_14 AC 70 ms
71,312 KB
testcase_15 AC 70 ms
71,280 KB
testcase_16 AC 73 ms
71,104 KB
testcase_17 AC 73 ms
71,480 KB
testcase_18 AC 72 ms
71,260 KB
testcase_19 AC 73 ms
71,464 KB
testcase_20 AC 72 ms
71,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


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

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

    for _ in range(M):
        p, q, a, b = map(int, input().split())
        if a <= 0 or b <= 0:
            ok = 0
    if ok:
        print(*ans)
    else:
        print(-1)


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