結果
問題 | No.88 次はどっちだ |
ユーザー |
|
提出日時 | 2019-09-03 19:37:40 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 1,643 ms |
コンパイル使用メモリ | 161,620 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 13:04:04 |
合計ジャッジ時間 | 2,330 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include<bits/stdc++.h>using namespace std;int main(){string s,t="oda",u="yukiko";cin>>s;vector<string> ans(2);ans.front()=(s==t?t:u);ans.back()=(s==t?u:t);int sum=0;for(int i=0;i<8;++i){string b;cin>>b;sum+=count(b.begin(),b.end(),'.');}cout<<ans[sum%2]<<endl;}