結果

問題 No.601 Midpoint Erase
ユーザー 👑 はまやんはまやんはまやんはまやん
提出日時 2017-12-11 02:32:04
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,312 bytes
コンパイル時間 1,733 ms
コンパイル使用メモリ 167,444 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-07 17:04:39
合計ジャッジ時間 3,542 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 17 ms
6,940 KB
testcase_05 WA -
testcase_06 AC 8 ms
6,940 KB
testcase_07 AC 17 ms
6,944 KB
testcase_08 AC 15 ms
6,940 KB
testcase_09 AC 17 ms
6,940 KB
testcase_10 AC 5 ms
6,940 KB
testcase_11 WA -
testcase_12 AC 11 ms
6,940 KB
testcase_13 AC 1 ms
6,940 KB
testcase_14 AC 2 ms
6,940 KB
testcase_15 WA -
testcase_16 AC 2 ms
6,940 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 2 ms
6,940 KB
testcase_21 AC 2 ms
6,940 KB
testcase_22 AC 2 ms
6,940 KB
testcase_23 AC 2 ms
6,944 KB
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#pragma GCC optimize ("-O3")
using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
//---------------------------------------------------------------------------------------------------
/*---------------------------------------------------------------------------------------------------
            ∧_∧  
      ∧_∧  (´<_` )  Welcome to My Coding Space!
     ( ´_ゝ`) /  ⌒i     
    /   \     | |     
    /   / ̄ ̄ ̄ ̄/  |  
  __(__ニつ/     _/ .| .|____  
     \/____/ (u ⊃  
---------------------------------------------------------------------------------------------------*/
 



int N, cnt[4];
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> N;
    rep(i, 0, N) {
        int x, y; cin >> x >> y;
        x %= 2;
        y %= 2;
        cnt[y * 2 + x]++;
    }

    int sm = 0;
    rep(i, 0, 4) sm += cnt[i] / 2;
    if (sm % 2 == 1) printf("Aline\n");
    else printf("Bob\n");
}
0