結果

問題 No.2190 平方数の下12桁
ユーザー prussian_coderprussian_coder
提出日時 2023-02-03 21:11:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 1,327 ms
コンパイル使用メモリ 87,220 KB
実行使用メモリ 76,568 KB
最終ジャッジ日時 2023-09-15 16:30:30
合計ジャッジ時間 5,222 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,476 KB
testcase_01 AC 71 ms
71,328 KB
testcase_02 AC 70 ms
71,372 KB
testcase_03 AC 71 ms
71,588 KB
testcase_04 AC 72 ms
71,596 KB
testcase_05 AC 71 ms
71,236 KB
testcase_06 AC 71 ms
71,332 KB
testcase_07 AC 72 ms
71,588 KB
testcase_08 AC 71 ms
71,276 KB
testcase_09 AC 71 ms
71,540 KB
testcase_10 AC 71 ms
71,244 KB
testcase_11 AC 71 ms
71,452 KB
testcase_12 AC 72 ms
71,128 KB
testcase_13 AC 70 ms
71,268 KB
testcase_14 AC 73 ms
71,132 KB
testcase_15 AC 73 ms
75,752 KB
testcase_16 AC 70 ms
71,400 KB
testcase_17 AC 78 ms
76,188 KB
testcase_18 AC 71 ms
71,588 KB
testcase_19 AC 71 ms
71,456 KB
testcase_20 AC 78 ms
76,540 KB
testcase_21 AC 72 ms
71,612 KB
testcase_22 AC 71 ms
71,452 KB
testcase_23 AC 79 ms
76,072 KB
testcase_24 AC 72 ms
71,472 KB
testcase_25 AC 72 ms
71,632 KB
testcase_26 AC 69 ms
71,136 KB
testcase_27 AC 70 ms
71,368 KB
testcase_28 AC 71 ms
71,448 KB
testcase_29 AC 80 ms
76,568 KB
testcase_30 AC 69 ms
71,376 KB
testcase_31 AC 72 ms
71,324 KB
testcase_32 AC 69 ms
71,236 KB
testcase_33 AC 71 ms
71,276 KB
testcase_34 AC 71 ms
71,372 KB
testcase_35 AC 77 ms
75,692 KB
testcase_36 AC 73 ms
71,272 KB
testcase_37 AC 72 ms
71,336 KB
testcase_38 AC 70 ms
71,372 KB
testcase_39 AC 72 ms
71,508 KB
testcase_40 AC 72 ms
71,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=int(input())

def dfs(i,a):
    if i==12:
        print("YES")
        exit()
    for k in range(10):
        b=a+(10**i)*k
        if (b**2-S)%(10**(i+1))==0:
            dfs(i+1,b)
dfs(0,0)
print("NO")
0