結果
問題 |
No.3112 Decrement or Mod Game
|
ユーザー |
![]() |
提出日時 | 2025-04-20 19:34:12 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 115 bytes |
コンパイル時間 | 420 ms |
コンパイル使用メモリ | 24,448 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-04-20 19:34:15 |
合計ジャッジ時間 | 2,707 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 41 WA * 24 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:2:21: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2 | int main() {int A,B;scanf("%d %d",&A,&B);printf("%s\n",(A>=B&&A-B!=1)||(A==1) ? "Alice":"Bob");} | ^~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main() {int A,B;scanf("%d %d",&A,&B);printf("%s\n",(A>=B&&A-B!=1)||(A==1) ? "Alice":"Bob");}