結果
問題 |
No.1129 Rating じゃんけん
|
ユーザー |
![]() |
提出日時 | 2022-07-25 16:41:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 491 bytes |
コンパイル時間 | 1,519 ms |
コンパイル使用メモリ | 166,900 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 17:26:06 |
合計ジャッジ時間 | 2,420 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 12 WA * 4 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll=long long; #define rep(i,p,n)for(ll i=(ll)p;i<(ll)n;i++) #define all(x)(x).begin(),(x).end() #define edt(x1,y1,x2,y2)sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)) int main(){ ll A,B,C,D; cin>>A>>B>>C>>D; if(A>C)cout<<"null"<<endl; else if(C>A)cout<<"tRue"<<endl; else{ switch((B-D+3)%3){ case 0: cout<<"draw"<<endl; break; case 1: cout<<"null"<<endl; break; case 2: cout<<"tRue"<<endl; break; } } }