結果
問題 | No.601 Midpoint Erase |
ユーザー |
|
提出日時 | 2017-12-01 00:03:57 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 392 bytes |
コンパイル時間 | 1,334 ms |
コンパイル使用メモリ | 157,992 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 03:08:13 |
合計ジャッジ時間 | 2,623 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%d",&n); | ~~~~~^~~~~~~~~ main.cpp:14:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%d%d",&x[i],&y[i]); | ~~~~~^~~~~~~~~~~~~~~~~~~~
ソースコード
#include <bits/stdc++.h>#define MOD 1000000007LLusing namespace std;typedef long long ll;typedef pair<int,int> P;int n;int x[100005],y[100005];int type[4];int main(void){scanf("%d",&n);for(int i=0;i<n;i++){scanf("%d%d",&x[i],&y[i]);type[(x[i]%2)*2+(y[i]%2)]++;}int cnt=0;for(int i=0;i<4;i++){cnt+=type[i]/2;}printf("%s\n",cnt%2==0?"Bob":"Alice");return 0;}