結果

問題 No.8092 3-2-SAT
ユーザー ニックネーム
提出日時 2022-04-02 00:06:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 163 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,296 KB
最終ジャッジ日時 2024-11-20 13:52:29
合計ジャッジ時間 4,722 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10 RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

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