結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-08 10:40:32 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 307 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 36,608 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-22 11:10:26 |
| 合計ジャッジ時間 | 1,919 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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