結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2025-03-03 17:18:05 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 187 ms / 5,000 ms |
コード長 | 361 bytes |
コンパイル時間 | 237 ms |
コンパイル使用メモリ | 24,448 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-03-03 17:18:08 |
合計ジャッジ時間 | 2,038 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <stdio.h>void main(){int total = 0;int inputTotal = scanf("%d",&total);if(inputTotal == 2){printf("totalの入力ミス\n");}int eat = 0;int inputEat = scanf("%d",&eat);if(inputEat == 2){printf("eatの入力ミス\n");}int count = 0;while(total > eat*2){count++;total -= eat*2;}printf("%d\n",count*eat);}