結果

問題 No.8092 3-2-SAT
ユーザー lloyzlloyz
提出日時 2022-04-01 23:26:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 393 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 514 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2024-11-20 12:51:19
合計ジャッジ時間 3,270 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
for _ in range(m):
    p, q, a, b = map(int, input().split())
    if a < 0:
        print(-1)
        exit()
ANS = [1] * n
print(*ANS)
0