結果

問題 No.1224 I hate Sqrt Inequality
ユーザー m0ch1m0ch1m0ch1m0ch1
提出日時 2020-09-21 10:46:48
言語 Go
(1.21.3)
結果
MLE  
実行時間 -
コード長 288 bytes
コンパイル時間 10,729 ms
コンパイル使用メモリ 218,356 KB
実行使用メモリ 617,156 KB
最終ジャッジ日時 2023-09-06 17:00:05
合計ジャッジ時間 14,502 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

package main

import "fmt"

func main() {
	var a, b int
	fmt.Scan(&a, &b)

	var c int
	check := make(map[int]int, 10)
	for {
		c = a % b
		if c == 0 {
			fmt.Println("No")
			break
		} else {
			check[c]++
			if check[c] > 1 {
				fmt.Println("Yes")
				break
			}
			a = c * 10
		}
	}
}
0