結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2015-04-26 17:38:01 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 500 bytes |
コンパイル時間 | 435 ms |
コンパイル使用メモリ | 58,468 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-05 02:49:53 |
合計ジャッジ時間 | 1,121 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include "iostream"#include "algorithm"using namespace std;int main() {int i,j,k=0;string a,b;cin>>b;for (int l = 0; l < 8; ++l) {cin>>a;for (int m = 0; m < a.length(); ++m) {if (a[m] != '.'){k++;}}}if (k % 2 == 0) {cout<<b<<endl;}else{if (b == "yukiko") {cout<<"oda"<<endl;} else {cout<<"yukiko"<<endl;}}return 0;}