結果

問題 No.485 方程式のお勉強
ユーザー zangezange
提出日時 2017-03-01 13:55:15
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 153 bytes
コンパイル時間 15,729 ms
コンパイル使用メモリ 213,836 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-09-02 22:55:12
合計ジャッジ時間 16,860 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,368 KB
testcase_02 AC 2 ms
4,372 KB
testcase_03 WA -
testcase_04 AC 1 ms
4,368 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 1 ms
4,368 KB
testcase_08 WA -
testcase_09 AC 1 ms
4,368 KB
testcase_10 AC 2 ms
4,372 KB
testcase_11 AC 2 ms
4,372 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 2 ms
4,368 KB
testcase_15 AC 2 ms
4,372 KB
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import "fmt"

func main() {
	var a, b int
	fmt.Scan(&a)
	fmt.Scan(&b)
	if b%a == 0 {
		fmt.Println(b / a)
	} else {
		fmt.Println(-1)
	}
}
0