結果

問題 No.388 階段 (1)
ユーザー Maeda
提出日時 2025-03-03 10:50:27
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 356 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 24,448 KB
実行使用メモリ 8,612 KB
最終ジャッジ日時 2025-03-03 10:51:13
合計ジャッジ時間 1,020 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 1 WA * 9 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 + s/f;
	//printf("%d/%d = %d\n",f,s,s/f);
	if(f%s != 0 && s/f > 0){
		ans = ans + 1 ;
	}
    printf("%d",ans);

}
0