結果

問題 No.648  お や す み 
ユーザー cielciel
提出日時 2017-10-06 01:33:30
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 210 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2024-04-28 07:57:11
合計ジャッジ時間 2,426 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 10 ms
6,144 KB
testcase_02 RE -
testcase_03 AC 9 ms
6,144 KB
testcase_04 AC 10 ms
6,272 KB
testcase_05 RE -
testcase_06 AC 9 ms
6,272 KB
testcase_07 AC 10 ms
6,272 KB
testcase_08 AC 9 ms
6,272 KB
testcase_09 RE -
testcase_10 AC 10 ms
6,144 KB
testcase_11 AC 10 ms
6,272 KB
testcase_12 AC 9 ms
6,144 KB
testcase_13 AC 10 ms
6,272 KB
testcase_14 AC 10 ms
6,144 KB
testcase_15 AC 9 ms
6,144 KB
testcase_16 AC 9 ms
6,272 KB
testcase_17 AC 9 ms
6,272 KB
testcase_18 AC 9 ms
6,272 KB
testcase_19 AC 9 ms
6,272 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 AC 9 ms
6,144 KB
testcase_31 AC 11 ms
6,272 KB
testcase_32 AC 10 ms
6,272 KB
testcase_33 AC 9 ms
6,144 KB
testcase_34 AC 10 ms
6,400 KB
testcase_35 AC 10 ms
6,144 KB
testcase_36 AC 10 ms
6,272 KB
testcase_37 AC 9 ms
6,272 KB
testcase_38 AC 10 ms
6,272 KB
testcase_39 AC 9 ms
6,272 KB
testcase_40 AC 9 ms
6,272 KB
testcase_41 AC 9 ms
6,272 KB
testcase_42 AC 10 ms
6,400 KB
testcase_43 AC 9 ms
6,272 KB
testcase_44 AC 9 ms
6,272 KB
testcase_45 AC 9 ms
6,272 KB
testcase_46 AC 9 ms
6,272 KB
testcase_47 AC 9 ms
6,400 KB
testcase_48 AC 9 ms
6,272 KB
testcase_49 AC 9 ms
6,400 KB
testcase_50 RE -
testcase_51 RE -
testcase_52 RE -
testcase_53 RE -
testcase_54 RE -
testcase_55 RE -
testcase_56 RE -
testcase_57 RE -
testcase_58 RE -
testcase_59 RE -
testcase_60 AC 11 ms
6,272 KB
testcase_61 AC 10 ms
6,272 KB
testcase_62 AC 10 ms
6,272 KB
testcase_63 AC 9 ms
6,272 KB
testcase_64 AC 10 ms
6,400 KB
testcase_65 AC 10 ms
6,144 KB
testcase_66 AC 10 ms
6,272 KB
testcase_67 AC 9 ms
6,272 KB
testcase_68 AC 9 ms
6,400 KB
testcase_69 AC 9 ms
6,272 KB
testcase_70 AC 9 ms
6,272 KB
testcase_71 AC 10 ms
6,272 KB
testcase_72 AC 9 ms
6,272 KB
testcase_73 AC 9 ms
6,144 KB
testcase_74 AC 9 ms
6,272 KB
testcase_75 AC 9 ms
6,272 KB
testcase_76 AC 10 ms
6,272 KB
testcase_77 RE -
testcase_78 RE -
testcase_79 RE -
testcase_80 RE -
testcase_81 RE -
testcase_82 RE -
testcase_83 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def isqrt(n):
    if n<=0: return 0
    if n<4: return 1
    x,y=0,n
    while x!=y and x+1!=y:
        x,y=y,(n//y+y)//2
    return x
n=8*int(raw_input())+1
q=isqrt(n)
print('NO' if q*q!=n else 'YES\n'%(q//2))
0