結果

問題 No.2190 平方数の下12桁
ユーザー titiatitia
提出日時 2023-01-13 21:55:16
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 275 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 81,116 KB
最終ジャッジ日時 2023-08-26 03:39:22
合計ジャッジ時間 8,567 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
76,324 KB
testcase_01 AC 68 ms
75,684 KB
testcase_02 AC 70 ms
75,820 KB
testcase_03 AC 68 ms
75,712 KB
testcase_04 AC 67 ms
75,804 KB
testcase_05 AC 72 ms
75,700 KB
testcase_06 AC 70 ms
75,664 KB
testcase_07 AC 71 ms
75,664 KB
testcase_08 AC 70 ms
75,672 KB
testcase_09 AC 68 ms
75,804 KB
testcase_10 AC 69 ms
75,656 KB
testcase_11 AC 71 ms
75,668 KB
testcase_12 AC 1,248 ms
76,724 KB
testcase_13 AC 69 ms
75,904 KB
testcase_14 AC 67 ms
75,648 KB
testcase_15 AC 72 ms
75,984 KB
testcase_16 AC 73 ms
75,824 KB
testcase_17 AC 70 ms
76,020 KB
testcase_18 AC 69 ms
75,744 KB
testcase_19 AC 71 ms
75,748 KB
testcase_20 AC 69 ms
75,972 KB
testcase_21 AC 70 ms
75,932 KB
testcase_22 AC 73 ms
75,824 KB
testcase_23 AC 71 ms
75,916 KB
testcase_24 AC 72 ms
75,668 KB
testcase_25 AC 68 ms
75,764 KB
testcase_26 AC 71 ms
75,780 KB
testcase_27 AC 72 ms
75,824 KB
testcase_28 AC 113 ms
76,572 KB
testcase_29 TLE -
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(1000123):
    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