結果

問題 No.46 はじめのn歩
ユーザー my_blen
提出日時 2022-10-10 15:23:49
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 366 ms
コンパイル使用メモリ 30,208 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-24 09:45:36
合計ジャッジ時間 724 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main(void){
	int a,b,i;
	
	printf("1歩で歩ける距離を入力(cm)");
	scanf("%d",&a);
	
	printf("移動する距離を入力(cm)");
	scanf("%d",&b);
	
	if(b%a==0) printf("%d歩\n",b/a);
	else printf("%d歩\n",b/a+1);
	
	return 0;
}
0