結果
問題 | No.485 方程式のお勉強 |
ユーザー | FVRChan |
提出日時 | 2017-09-29 12:30:35 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 1,783 ms |
コンパイル使用メモリ | 74,084 KB |
実行使用メモリ | 41,452 KB |
最終ジャッジ日時 | 2024-04-27 16:17:37 |
合計ジャッジ時間 | 4,391 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 114 ms
41,224 KB |
testcase_02 | AC | 106 ms
40,824 KB |
testcase_03 | WA | - |
testcase_04 | AC | 111 ms
41,248 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 113 ms
41,248 KB |
testcase_08 | WA | - |
testcase_09 | AC | 101 ms
40,092 KB |
testcase_10 | AC | 115 ms
41,380 KB |
testcase_11 | AC | 113 ms
41,144 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 111 ms
41,260 KB |
testcase_15 | AC | 106 ms
40,448 KB |
testcase_16 | WA | - |
ソースコード
import java.util.Scanner; public class Main{ private static Scanner sc=new Scanner(System.in); public static void main(String args[])throws Exception{ int a=sc.nextInt(),b=sc.nextInt(); if(b%a==0)System.out.println(b/a); else System.out.println(-1); } }