結果

問題 No.88 次はどっちだ
ユーザー stone_725stone_725
提出日時 2015-01-03 04:19:42
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 1,186 bytes
コンパイル時間 1,570 ms
コンパイル使用メモリ 148,256 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-03 20:24:11
合計ジャッジ時間 2,403 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//include
#include<bits/stdc++.h>

//using
using namespace std;

//define static const typedef
#define FOR(i, s, n) for(int (i) = (s); (i) < (n); (i)++)
#define REP(i, n) FOR((i), 0, (n))
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SORT(a) sort(ALL(a))
#define RSORT(a) sort(RALL(a))
#define DUMP(x) cerr << #x << " = " << x << "\n";
#define DEBUG(x) cerr << #x << " = " << x << " (L:" << __LINE__ << ") " << __FILE__ << "\n";
#define F first
#define S second

typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef vector<PII> VPII;
typedef long long LL;
typedef vector<LL> VLL;
typedef vector<VLL> VVLL;
typedef unsigned long long ULL;

static const int INF = 1 << 25;

string str[2], s;
int cnt = 0;

int main(){
  cin >> str[0];
  if( str[0] == "oda"){
    str[1] = "yukiko";
  }
  else{
    str[1] = "oda";
  }
  for (int i = 0; i < 8; ++i){
    cin >> s;
    sort(s.begin(), s.end());
    cnt += 8 - (upper_bound(s.begin(), s.end(), '.') - lower_bound(s.begin(), s.end(), '.'));
  }
  printf("%s\n", str[cnt % 2].c_str());
  return 0;
}

0