結果
問題 | No.3112 Decrement or Mod Game |
ユーザー |
![]() |
提出日時 | 2025-04-18 21:14:21 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 24,576 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-04-18 21:14:24 |
合計ジャッジ時間 | 1,556 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 65 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lld %lld", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main() { long long int a, b; scanf("%lld %lld", &a, &b); if (a == 1 || a % b == 0) printf("Alice\n"); else if (a - 1 > b) printf("Alice\n"); else if (a - 1 == b) printf("Bob\n"); else if (a == b) printf("Alice\n"); else printf("Bob\n"); return 0; }