結果
問題 | No.1224 I hate Sqrt Inequality |
ユーザー | IH |
提出日時 | 2020-09-20 21:13:20 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 609 ms |
コンパイル使用メモリ | 86,940 KB |
実行使用メモリ | 84,068 KB |
最終ジャッジ日時 | 2023-09-06 16:33:28 |
合計ジャッジ時間 | 5,557 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,148 KB |
testcase_01 | AC | 74 ms
71,072 KB |
testcase_02 | AC | 74 ms
71,136 KB |
testcase_03 | AC | 72 ms
70,972 KB |
testcase_04 | AC | 75 ms
71,108 KB |
testcase_05 | AC | 75 ms
70,888 KB |
testcase_06 | AC | 75 ms
70,996 KB |
testcase_07 | AC | 74 ms
71,112 KB |
testcase_08 | AC | 76 ms
71,104 KB |
testcase_09 | TLE | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
ソースコード
a,b = map(int,input().split()) x = [a] i = 0 while True: a = a%b a = 10*a if a in x and a != 0: print("Yes") exit() else: if i == b - 1 or a ==0: print("No") exit() else: i += 1 x.append(a)