結果

問題 No.2185 平方数の下6桁
ユーザー 👑 KazunKazun
提出日時 2023-01-13 21:26:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 75,388 KB
最終ジャッジ日時 2023-08-26 02:56:49
合計ジャッジ時間 4,350 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,212 KB
testcase_01 AC 63 ms
71,196 KB
testcase_02 AC 80 ms
75,296 KB
testcase_03 AC 64 ms
71,452 KB
testcase_04 AC 84 ms
75,196 KB
testcase_05 AC 83 ms
75,172 KB
testcase_06 AC 81 ms
75,388 KB
testcase_07 AC 64 ms
71,160 KB
testcase_08 AC 82 ms
75,196 KB
testcase_09 AC 65 ms
71,124 KB
testcase_10 AC 83 ms
75,176 KB
testcase_11 AC 64 ms
71,128 KB
testcase_12 AC 86 ms
75,064 KB
testcase_13 AC 67 ms
70,944 KB
testcase_14 AC 82 ms
75,104 KB
testcase_15 AC 69 ms
75,244 KB
testcase_16 AC 69 ms
75,188 KB
testcase_17 AC 65 ms
71,292 KB
testcase_18 AC 84 ms
75,144 KB
testcase_19 AC 68 ms
75,144 KB
testcase_20 AC 80 ms
75,176 KB
testcase_21 AC 80 ms
75,184 KB
testcase_22 AC 69 ms
75,232 KB
testcase_23 AC 82 ms
75,204 KB
testcase_24 AC 67 ms
75,264 KB
testcase_25 AC 80 ms
75,308 KB
testcase_26 AC 80 ms
75,192 KB
testcase_27 AC 72 ms
75,216 KB
testcase_28 AC 71 ms
75,112 KB
testcase_29 AC 71 ms
75,228 KB
testcase_30 AC 79 ms
75,144 KB
testcase_31 AC 78 ms
75,172 KB
testcase_32 AC 69 ms
75,200 KB
testcase_33 AC 66 ms
74,988 KB
testcase_34 AC 81 ms
75,184 KB
testcase_35 AC 83 ms
75,188 KB
testcase_36 AC 67 ms
75,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    S=int(input())

    M=10**6
    for a in range(10**6):
        if (a*a)%M==S:
            return True
    return False

#==================================================
print("YES" if solve() else "NO")
0