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