結果

問題 No.63 ポッキーゲーム
ユーザー Maeda
提出日時 2025-03-03 17:16:59
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 585 ms
コンパイル使用メモリ 24,832 KB
実行使用メモリ 8,608 KB
最終ジャッジ日時 2025-03-03 17:17:02
合計ジャッジ時間 1,989 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#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);
}
0