結果
問題 |
No.88 次はどっちだ
|
ユーザー |
|
提出日時 | 2019-07-29 14:03:40 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 1,756 ms |
コンパイル使用メモリ | 193,312 KB |
最終ジャッジ日時 | 2025-01-07 09:57:46 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; string t; if (s == "oda") t = "yukiko"; else t = "oda"; char c; int cnt = 0; for (int i = 0; i < 64; i++) { cin >> c; if (c == '.') cnt++; } if (cnt % 2 == 0) cout << s <<endl; else cout << t << endl; return 0; }