結果

提出番号 1623
提出者 phyllo
言語 C++
提出日時 2018-08-04 13:17:57
問題名 (67)575ゲーム
結果 AC
点数 100%

テストケース

テストケース 結果 得点 実行時間 メモリ使用量
1 AC 100% 2ms 8688KB
2 AC 100% 2ms 8384KB
3 AC 100% 2ms 7776KB
4 AC 100% 1ms 8736KB
5 AC 100% 2ms 8416KB
6 AC 100% 1ms 8272KB
7 AC 100% 2ms 8384KB
8 AC 100% 2ms 7632KB
9 AC 100% 2ms 7968KB
10 AC 100% 2ms 7840KB
11 AC 100% 1ms 8688KB
12 AC 100% 2ms 8128KB
13 AC 100% 2ms 8144KB
14 AC 100% 1ms 8720KB
15 AC 100% 2ms 8352KB
16 AC 100% 2ms 8064KB
17 AC 100% 2ms 8304KB
18 AC 100% 2ms 8048KB
19 AC 100% 2ms 8016KB
20 AC 100% 1ms 8272KB
21 AC 100% 2ms 8416KB
22 AC 100% 2ms 8400KB
23 AC 100% 2ms 7808KB
24 AC 100% 1ms 8112KB
25 AC 100% 2ms 8016KB
26 AC 100% 1ms 8272KB
27 AC 100% 2ms 8384KB
28 AC 100% 1ms 8256KB
29 AC 100% 2ms 7792KB
30 AC 100% 1ms 7824KB

ソースコード

#include <bits/stdc++.h>
using namespace std;
#define REP(i,a,n) for(int i=(a); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it)
#define ALLOF(c) (c).begin(), (c).end()
typedef long long ll;
typedef unsigned long long ull;


int main(){
  int f, s;
  cin >> f >> s;

  int turn = 0;
  while(true){
    if(f >= 2 && s >= 1){
      f -= 2;
      s -= 1;
      turn = 1 - turn;
    }else{
      break;
    }
  }

  if(turn == 0) cout << "K" << endl;
  else cout << "O" << endl;
  
  return 0;
}