結果
問題 | No.88 次はどっちだ |
ユーザー |
|
提出日時 | 2018-06-11 23:02:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 531 ms |
コンパイル使用メモリ | 65,528 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 13:45:59 |
合計ジャッジ時間 | 1,098 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream>#include <string>using namespace std;int main(int argc, char* argv[]){string S;cin>>S;int num=0;for (int i=0;i<8;i++){string T;cin>>T;for (int j=0;j<T.size();j++){if (T[j]!='.'){num++;}}}if (num%2==0){cout<<S<<endl;}else{if (!S.compare("oda")){cout<<"yukiko"<<endl;}else{cout<<"oda"<<endl;}}return 0;}