結果

問題 No.648  お や す み 
ユーザー ktr_0129ktr_0129
提出日時 2018-02-22 14:32:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 140 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 16,660 KB
最終ジャッジ日時 2024-04-08 16:22:21
合計ジャッジ時間 6,779 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
16,660 KB
testcase_01 AC 31 ms
9,856 KB
testcase_02 AC 29 ms
9,856 KB
testcase_03 AC 29 ms
9,856 KB
testcase_04 AC 30 ms
9,856 KB
testcase_05 AC 30 ms
9,856 KB
testcase_06 AC 30 ms
9,856 KB
testcase_07 AC 30 ms
9,856 KB
testcase_08 AC 29 ms
9,856 KB
testcase_09 AC 30 ms
9,856 KB
testcase_10 AC 29 ms
9,856 KB
testcase_11 AC 29 ms
9,856 KB
testcase_12 AC 30 ms
9,856 KB
testcase_13 AC 29 ms
9,856 KB
testcase_14 AC 32 ms
9,856 KB
testcase_15 AC 29 ms
9,856 KB
testcase_16 AC 29 ms
9,856 KB
testcase_17 AC 29 ms
9,856 KB
testcase_18 AC 29 ms
9,856 KB
testcase_19 AC 29 ms
9,856 KB
testcase_20 AC 33 ms
9,856 KB
testcase_21 AC 35 ms
9,856 KB
testcase_22 AC 33 ms
9,856 KB
testcase_23 AC 32 ms
9,856 KB
testcase_24 AC 30 ms
9,856 KB
testcase_25 AC 34 ms
9,856 KB
testcase_26 AC 30 ms
9,856 KB
testcase_27 AC 34 ms
9,856 KB
testcase_28 AC 33 ms
9,856 KB
testcase_29 AC 29 ms
9,856 KB
testcase_30 AC 44 ms
9,856 KB
testcase_31 AC 53 ms
9,856 KB
testcase_32 AC 47 ms
9,856 KB
testcase_33 AC 52 ms
9,856 KB
testcase_34 AC 48 ms
9,856 KB
testcase_35 AC 35 ms
9,856 KB
testcase_36 AC 36 ms
9,856 KB
testcase_37 AC 55 ms
9,856 KB
testcase_38 AC 48 ms
9,856 KB
testcase_39 AC 46 ms
9,856 KB
testcase_40 AC 61 ms
9,856 KB
testcase_41 AC 66 ms
9,856 KB
testcase_42 AC 63 ms
9,856 KB
testcase_43 AC 62 ms
9,856 KB
testcase_44 AC 41 ms
9,856 KB
testcase_45 AC 70 ms
9,856 KB
testcase_46 AC 42 ms
9,856 KB
testcase_47 AC 52 ms
9,856 KB
testcase_48 AC 52 ms
9,856 KB
testcase_49 AC 73 ms
9,856 KB
testcase_50 TLE -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
testcase_58 -- -
testcase_59 -- -
testcase_60 -- -
testcase_61 -- -
testcase_62 -- -
testcase_63 -- -
testcase_64 -- -
testcase_65 -- -
testcase_66 -- -
testcase_67 -- -
testcase_68 -- -
testcase_69 -- -
testcase_70 -- -
testcase_71 -- -
testcase_72 -- -
testcase_73 -- -
testcase_74 -- -
testcase_75 -- -
testcase_76 -- -
testcase_77 -- -
testcase_78 -- -
testcase_79 -- -
testcase_80 -- -
testcase_81 -- -
testcase_82 -- -
testcase_83 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
i=0
N=0
while N<n:
    i+=1
    N=i*(i+1)/2
    if n==N:
        print('YES\n%d'%i)
    elif N>n:
        print('NO')
    


0