結果

問題 No.388 階段 (1)
ユーザー Maeda
提出日時 2025-03-03 10:40:23
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 24,704 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2025-03-03 10:40:51
合計ジャッジ時間 997 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other WA * 10 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
void main(void){
	int s = 0 , f = 0;
	int inputS = scanf("%d",&s);
	if(inputS == 2){
		printf("Sの入力エラー\n");
	}
	int inputF = scanf("%d\n",&f);
	if(inputF == 2){
		printf("Fの入力エラー\n");
	}
	int ans = 1 + f/s;
	if(f%s != 0){
		ans += 1 ;
	}
    printf("%d",ans);

}
0