結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-22 21:57:55 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 822 bytes |
| コンパイル時間 | 2,372 ms |
| コンパイル使用メモリ | 75,032 KB |
| 実行使用メモリ | 50,520 KB |
| 最終ジャッジ日時 | 2024-06-24 11:10:18 |
| 合計ジャッジ時間 | 3,243 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 8 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UncheckedIOException;
import java.util.stream.Stream;
class Main {
public static void main(String[] args) {
no46();
}
// はじめのn歩
private static void no46(){
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
// 一歩
int a;
// 区間
int b;
try {
String line = reader.readLine();
String[] lines = line.split(" ");
a = Integer.parseInt(lines[0]);
b = Integer.parseInt(lines[1]);
reader.close();
} catch (IOException e) {
throw new UncheckedIOException(e);
}
System.out.println((b / a) + (a % b));
}
}