結果
| 問題 |
No.485 方程式のお勉強
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-08 17:14:56 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 461 bytes |
| コンパイル時間 | 3,282 ms |
| コンパイル使用メモリ | 74,388 KB |
| 実行使用メモリ | 56,400 KB |
| 最終ジャッジ日時 | 2024-06-23 19:12:41 |
| 合計ジャッジ時間 | 6,252 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 7 WA * 6 |
ソースコード
import java.util.Scanner;
public class class_name {
public static void main(String[] args){
//System.out.println("Hello World!");
int a;
int b;
Scanner sc = new Scanner(System.in);
a = sc.nextInt();
b = sc.nextInt();
if (/*Math.abs(a)<=Math.abs(b) && */a%b==0){
System.out.println(b/a);
}else{
System.out.println("NO");
}
}
}