結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2016-05-18 14:02:57 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 551 bytes |
コンパイル時間 | 569 ms |
コンパイル使用メモリ | 66,128 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-06 05:29:42 |
合計ジャッジ時間 | 1,083 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <vector> #include <string> #include <algorithm> #include <numeric> #include <iostream> #include <fstream> #include <queue> #include <cstring> using namespace std; using ll = long long; using ull = unsigned long long; using P = pair<ll,ll>; int main() { string name; cin >> name; string name2 = (name == "oda") ? "yukiko" : "oda"; int count = 0; for(int i = 0; i < 64; ++i) { char data; cin >> data; if(data != '.') ++count; } if(count & 1) cout << name2 << endl; else cout << name << endl; }