結果

問題 No.2190 平方数の下12桁
ユーザー titiatitia
提出日時 2023-01-13 21:54:29
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 276 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 80,764 KB
最終ジャッジ日時 2023-08-26 03:38:18
合計ジャッジ時間 5,125 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
76,048 KB
testcase_01 AC 88 ms
75,668 KB
testcase_02 AC 87 ms
75,968 KB
testcase_03 AC 88 ms
75,748 KB
testcase_04 AC 90 ms
75,816 KB
testcase_05 AC 89 ms
75,644 KB
testcase_06 AC 90 ms
75,660 KB
testcase_07 AC 91 ms
75,840 KB
testcase_08 AC 90 ms
75,900 KB
testcase_09 AC 90 ms
75,928 KB
testcase_10 AC 101 ms
75,648 KB
testcase_11 AC 105 ms
75,748 KB
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

x=int(input())

LIST=[]

for i in range(10000123):
    if (i*i)%1000000==x%(1000000):
        LIST.append(i)
        
for i in range(1000123):
    for l in LIST:
        y=l+i*1000000

        if (y*y)%1000000000000==x:
            print("YES")
            exit()

print("NO")
0