結果
問題 |
No.601 Midpoint Erase
|
ユーザー |
👑 |
提出日時 | 2020-03-08 02:35:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 79 ms / 2,000 ms |
コード長 | 198 bytes |
コンパイル時間 | 521 ms |
コンパイル使用メモリ | 65,228 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-15 17:22:04 |
合計ジャッジ時間 | 2,103 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main(){ | ^~~~
ソースコード
#include <iostream> using namespace std; int A[4],n,x,y,a; main(){ cin>>n; while(n--)cin>>x>>y,x%=2,y%=2,A[x*2+y]++; for(int i = 0; 4 > i; i++)a += A[i]/2; cout << (a%2?"Alice":"Bob") << endl; }