結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2019-01-08 17:10:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 548 bytes |
コンパイル時間 | 1,602 ms |
コンパイル使用メモリ | 158,196 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 00:43:28 |
合計ジャッジ時間 | 2,180 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 10 |
ソースコード
#include<bits/stdc++.h> using namespace std; class stetas{ private: public: string name; long long int point=0; char hand; }; int main(){ stetas player[2]; for(int i=0;i<2;i++){ cin>>player[i].name; cin>>player[i].point; cin>>player[i].hand; } if(player[0].point>player[1].point){ // cout<<"sdf"; cout<<player[0].name; }else if(player[1].point>player[0].point){ //cout<<"as"; cout<<player[1].name; }else{ cout<<-1; } return 0; }