結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2016-06-26 23:14:10 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 566 ms |
コンパイル使用メモリ | 55,516 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 23:26:33 |
合計ジャッジ時間 | 1,182 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string s1; cin >> s1; string s2 = s1 == "oda" ? "yukiko" : "oda"; int cnt = 0; for (int i = 0; i < 64; ++i) { char tmp; cin >> tmp; if (tmp != '.') cnt++; } cout << (cnt % 2 == 0 ? s1 : s2) << endl; return 0; }