結果
| 問題 | No.1506 Unbalanced Pocky Game |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2021-05-17 15:59:55 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 237 bytes |
| 記録 | |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 29,380 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:26:36 |
| 合計ジャッジ時間 | 1,592 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 63 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:22: warning: initialization of ‘short int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types]
8 | short*rp_end=rbuf+n-1;
| ^~~~
ソースコード
#pragma GCC optimize("Ofast")
#pragma GCC target("avx2")
char rbuf[1<<22];
main(){
int n=read(0,rbuf,sizeof rbuf);
short*rp_end=rbuf+n-1;
short*rp=rp_end;
while(*--rp==0x3120);
write(1,rp_end-rp&1?"Alice":"Bob ",5);
_exit(0);
}
tails