結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2021-10-22 20:40:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 501 bytes |
コンパイル時間 | 4,710 ms |
コンパイル使用メモリ | 249,668 KB |
最終ジャッジ日時 | 2025-01-25 03:02:58 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <stdio.h>#include <bits/stdc++.h>#include <atcoder/all>using namespace atcoder;using mint = modint1000000007;using namespace std;#define rep(i,n) for (int i = 0; i < (n); ++i)#define Inf 100000000000000000int main(){string s;cin>>s;string opp;if(s[0]=='y')opp = "oda";else opp = "yukiko";int cnt =0;rep(i,8){string temp;cin>>temp;rep(j,temp.size()){if(isalpha(temp[j]))cnt^=1;}}if(cnt==0)cout<<s<<endl;else cout<<opp<<endl;return 0;}