結果
| 問題 |
No.485 方程式のお勉強
|
| コンテスト | |
| ユーザー |
neko_the_shadow
|
| 提出日時 | 2017-03-20 22:55:48 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 127 ms / 2,000 ms |
| コード長 | 442 bytes |
| コンパイル時間 | 2,340 ms |
| コンパイル使用メモリ | 75,336 KB |
| 実行使用メモリ | 41,536 KB |
| 最終ジャッジ日時 | 2024-10-04 04:20:48 |
| 合計ジャッジ時間 | 5,555 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
String[] tokens = stdin.nextLine().split(" ");
int a = Integer.parseInt(tokens[0]), b = Integer.parseInt(tokens[1]);
if (Math.abs(b) % Math.abs(a) == 0) {
System.out.println(b / a);
} else {
System.out.println("NO");
}
}
}
neko_the_shadow