結果

問題 No.1224 I hate Sqrt Inequality
ユーザー m0ch1m0ch1m0ch1m0ch1
提出日時 2020-09-21 10:51:48
言語 Go
(1.21.3)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 10,843 ms
コンパイル使用メモリ 211,532 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-06 17:00:38
合計ジャッジ時間 11,858 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

package main

import "fmt"

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

	var count int
	for {
		if a%b == 0 {
			fmt.Println("No")
			break
		} else {
			count++
			if count > 9 {
				fmt.Println("Yes")
				break
			}
			a = 10 * (a % b)
		}
	}
}
0