結果
| 問題 |
No.485 方程式のお勉強
|
| コンテスト | |
| ユーザー |
yun_app
|
| 提出日時 | 2017-03-13 18:27:00 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| コード長 | 621 bytes |
| コンパイル時間 | 2,581 ms |
| コンパイル使用メモリ | 74,752 KB |
| 実行使用メモリ | 50,264 KB |
| 最終ジャッジ日時 | 2024-10-04 04:18:04 |
| 合計ジャッジ時間 | 4,122 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] lines = br.readLine().split(" ");
int A = Integer.parseInt(lines[0]);
int B = Integer.parseInt(lines[1]);
System.out.println(((double)B/A) == (B/A)?Integer.toString(B/A):"NO");
}
}
yun_app