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