結果
問題 | No.3092 3-2-SAT |
ユーザー | chineristAC |
提出日時 | 2022-04-01 21:51:21 |
言語 | PyPy3 (7.3.13) |
結果 |
AC
|
実行時間 | 299 ms / 2,000 ms |
コード長 | 416 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 86,848 KB |
実行使用メモリ | 97,888 KB |
最終ジャッジ日時 | 2023-08-12 18:41:11 |
合計ジャッジ時間 | 7,839 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 253 ms
92,896 KB |
testcase_01 | AC | 278 ms
97,556 KB |
testcase_02 | AC | 290 ms
96,948 KB |
testcase_03 | AC | 282 ms
96,632 KB |
testcase_04 | AC | 299 ms
97,888 KB |
testcase_05 | AC | 285 ms
97,448 KB |
testcase_06 | AC | 253 ms
93,024 KB |
testcase_07 | AC | 250 ms
92,992 KB |
testcase_08 | AC | 252 ms
92,780 KB |
testcase_09 | AC | 253 ms
93,008 KB |
testcase_10 | AC | 252 ms
92,920 KB |
testcase_11 | AC | 252 ms
93,068 KB |
testcase_12 | AC | 254 ms
92,900 KB |
testcase_13 | AC | 248 ms
93,060 KB |
testcase_14 | AC | 246 ms
93,104 KB |
testcase_15 | AC | 254 ms
92,832 KB |
testcase_16 | AC | 256 ms
93,104 KB |
testcase_17 | AC | 252 ms
92,928 KB |
testcase_18 | AC | 253 ms
92,956 KB |
testcase_19 | AC | 252 ms
93,100 KB |
testcase_20 | AC | 251 ms
92,928 KB |
ソースコード
import sys,random,bisect from collections import deque,defaultdict from heapq import heapify,heappop,heappush from itertools import permutations from math import gcd from fractions import Fraction input = lambda :sys.stdin.readline().rstrip() mi = lambda :map(int,input().split()) li = lambda :list(mi()) N,M = mi() for _ in range(M): p,q,a,b = mi() if a!=1 and b!=1: exit(print(-1)) print(*[1]*N)