結果
問題 | No.485 方程式のお勉強 |
ユーザー |
![]() |
提出日時 | 2017-05-04 10:58:05 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 570 bytes |
コンパイル時間 | 2,065 ms |
コンパイル使用メモリ | 74,608 KB |
実行使用メモリ | 50,340 KB |
最終ジャッジ日時 | 2024-10-04 04:32:23 |
合計ジャッジ時間 | 4,005 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static java.lang.System.in; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(in)); String[] inputs = reader.readLine().split(" "); int A = Integer.parseInt(inputs[0]); int B = Integer.parseInt(inputs[1]); if( B%A!=0) { System.out.println("NO"); } else { System.out.println(B/A); } } }