結果

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

ソースコード

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);

    printf("%d",ans);

}
0