結果
| 問題 | No.601 Midpoint Erase | 
| コンテスト | |
| ユーザー |  akakimidori | 
| 提出日時 | 2017-12-07 00:36:49 | 
| 言語 | C90 (gcc 12.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 26 ms / 2,000 ms | 
| コード長 | 313 bytes | 
| コンパイル時間 | 840 ms | 
| コンパイル使用メモリ | 20,864 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-23 03:29:23 | 
| 合計ジャッジ時間 | 1,746 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 | 
コンパイルメッセージ
main.c: In function ‘run’:
main.c:5:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |   scanf("%d",&n);
      |   ^~~~~~~~~~~~~~
main.c:9:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |     scanf("%d%d",&x,&y);
      |     ^~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include<stdio.h>
void run(void){
  int n;
  scanf("%d",&n);
  int count[4]={};
  while(n>0){
    int x,y;
    scanf("%d%d",&x,&y);
    count[(x%2)*2+y%2]++;
    n--;
  }
  int cnt=0;
  for(n=0;n<4;n++) cnt+=count[n]/2;
  printf("%s\n",cnt%2==0?"Bob":"Alice");
  return;
}
int main(void){
  run();
  return 0;
}
            
            
            
        