結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2019-12-03 13:48:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 339 bytes |
コンパイル時間 | 1,379 ms |
コンパイル使用メモリ | 165,556 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 05:23:35 |
合計ジャッジ時間 | 2,173 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 20 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:12:3: warning: 'Pa' is used uninitialized [-Wuninitialized] 12 | if(Pa == Pb) puts("-1"); | ^~ main.cpp:11:7: note: 'Pa' was declared here 11 | int Pa,Pb; | ^~ main.cpp:12:3: warning: 'Pb' is used uninitialized [-Wuninitialized] 12 | if(Pa == Pb) puts("-1"); | ^~ main.cpp:11:10: note: 'Pb' was declared here 11 | int Pa,Pb; | ^~
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);++i) #define all(a) (a).begin(),(a).end() using namespace std; typedef long long ll; int main(){ ios::sync_with_stdio(false); cin.tie(0); string Sa,Xa,Sb,Xb; int Pa,Pb; if(Pa == Pb) puts("-1"); if(Pa < Pb) cout << Sb << endl; else cout << Sa << endl; return 0; }