結果
| 問題 |
No.485 方程式のお勉強
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-16 22:54:07 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 2,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 3,271 ms |
| コンパイル使用メモリ | 73,868 KB |
| 実行使用メモリ | 37,084 KB |
| 最終ジャッジ日時 | 2024-11-08 18:41:23 |
| 合計ジャッジ時間 | 4,969 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class No00000485_Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws IOException {
String[] x = br.readLine().split(" ");
int a = Integer.parseInt(x[0]);
int b = Integer.parseInt(x[1]);
System.out.println(b % a == 0 ? b / a : "NO");
}
}