結果
問題 | No.8092 3-2-SAT |
ユーザー |
![]() |
提出日時 | 2022-02-12 22:59:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 99 ms / 2,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 1,951 ms |
コンパイル使用メモリ | 192,664 KB |
最終ジャッジ日時 | 2025-01-27 22:51:33 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {int n, m;cin >> n >> m;for (int i = 0; i < m; i++) {int p, q, a, b;cin >> p >> q >> a >> b;if (a < 0) {cout << -1 << "\n";return 0;}}for (int i = 0; i < n; i++) cout << 1 << (i + 1 == n ? "\n" : " ");}