結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-08 10:46:49 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 340 ms / 5,000 ms |
| コード長 | 313 bytes |
| 記録 | |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 27,904 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-18 19:05:35 |
| 合計ジャッジ時間 | 906 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
int canwalk,distance,step=0;
scanf("%d %d",&canwalk,&distance);
while(1)
{
distance=distance-canwalk;
step++;
if(distance<=0)
{
break;
}
}
printf("%d",step);
}
funakoshi