結果

問題 No.8092 3-2-SAT
ユーザー akasinn
提出日時 2022-04-01 23:38:33
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 1,583 ms
コンパイル使用メモリ 166,692 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-20 13:11:45
合計ジャッジ時間 3,172 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

/*yukicoder April Fool Contest 2022 E*/
//小数や複素数には対応できない
#include<bits/stdc++.h>
using namespace std;

int main(){
  int n,m;
  cin>>n>>m;
  while(m--){
    int p,q,a,b;
    cin>>p>>q>>a>>b;
    if(a<0){
      cout<<-1<<endl;
      return 0;
    }
  }
  cout<<1;
  n--;
  while(n--)cout<<" 1";
  cout<<endl;
  return 0;
}
0