結果

問題 No.2190 平方数の下12桁
ユーザー titiatitia
提出日時 2023-01-13 21:56:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,764 ms / 2,000 ms
コード長 373 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 87,276 KB
実行使用メモリ 76,736 KB
最終ジャッジ日時 2023-08-26 03:41:42
合計ジャッジ時間 8,479 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
75,792 KB
testcase_01 AC 66 ms
75,344 KB
testcase_02 AC 115 ms
76,212 KB
testcase_03 AC 68 ms
75,740 KB
testcase_04 AC 71 ms
75,660 KB
testcase_05 AC 68 ms
75,812 KB
testcase_06 AC 114 ms
75,872 KB
testcase_07 AC 121 ms
76,000 KB
testcase_08 AC 124 ms
75,784 KB
testcase_09 AC 69 ms
75,364 KB
testcase_10 AC 69 ms
75,756 KB
testcase_11 AC 121 ms
76,152 KB
testcase_12 AC 1,309 ms
76,736 KB
testcase_13 AC 118 ms
76,012 KB
testcase_14 AC 73 ms
75,552 KB
testcase_15 AC 72 ms
75,556 KB
testcase_16 AC 117 ms
76,088 KB
testcase_17 AC 71 ms
75,796 KB
testcase_18 AC 121 ms
76,136 KB
testcase_19 AC 118 ms
76,004 KB
testcase_20 AC 67 ms
75,860 KB
testcase_21 AC 114 ms
75,868 KB
testcase_22 AC 116 ms
76,000 KB
testcase_23 AC 72 ms
75,700 KB
testcase_24 AC 121 ms
75,704 KB
testcase_25 AC 67 ms
75,660 KB
testcase_26 AC 115 ms
75,792 KB
testcase_27 AC 117 ms
76,088 KB
testcase_28 AC 116 ms
76,736 KB
testcase_29 AC 1,764 ms
76,424 KB
testcase_30 AC 69 ms
75,572 KB
testcase_31 AC 67 ms
75,568 KB
testcase_32 AC 70 ms
75,540 KB
testcase_33 AC 68 ms
75,808 KB
testcase_34 AC 68 ms
75,684 KB
testcase_35 AC 117 ms
75,992 KB
testcase_36 AC 69 ms
75,476 KB
testcase_37 AC 120 ms
76,016 KB
testcase_38 AC 115 ms
76,072 KB
testcase_39 AC 68 ms
75,628 KB
testcase_40 AC 70 ms
75,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import time
time0=time.time()

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()

    if time.time()-time0>1.7:
        print("NO")
        exit()

print("NO")
0