結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
abc
|
| 提出日時 | 2016-10-23 11:48:05 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 5,000 ms |
| コード長 | 424 bytes |
| 記録 | |
| コンパイル時間 | 3,560 ms |
| コンパイル使用メモリ | 81,512 KB |
| 実行使用メモリ | 41,728 KB |
| 最終ジャッジ日時 | 2026-05-17 22:19:09 |
| 合計ジャッジ時間 | 4,984 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int strideLength = sc.nextInt();
int distanceWalking = sc.nextInt();
int strideTotal = distanceWalking / strideLength;
if (distanceWalking % strideLength > 0) {
strideTotal++;
}
System.out.println(strideTotal);
}
}
abc