結果

問題 No.648  お や す み 
ユーザー sekiya9311sekiya9311
提出日時 2018-02-09 22:51:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 186 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 16,000 KB
最終ジャッジ日時 2024-04-17 05:35:40
合計ジャッジ時間 13,210 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
16,000 KB
testcase_01 AC 34 ms
10,496 KB
testcase_02 AC 31 ms
10,496 KB
testcase_03 AC 31 ms
10,368 KB
testcase_04 AC 32 ms
10,496 KB
testcase_05 AC 31 ms
10,624 KB
testcase_06 AC 31 ms
10,368 KB
testcase_07 AC 30 ms
10,368 KB
testcase_08 AC 31 ms
10,368 KB
testcase_09 AC 31 ms
10,496 KB
testcase_10 AC 30 ms
10,624 KB
testcase_11 AC 30 ms
10,368 KB
testcase_12 AC 35 ms
10,368 KB
testcase_13 AC 30 ms
10,368 KB
testcase_14 AC 31 ms
10,496 KB
testcase_15 AC 31 ms
10,624 KB
testcase_16 AC 31 ms
10,496 KB
testcase_17 AC 31 ms
10,496 KB
testcase_18 AC 30 ms
10,368 KB
testcase_19 AC 30 ms
10,496 KB
testcase_20 AC 32 ms
10,496 KB
testcase_21 AC 33 ms
10,496 KB
testcase_22 AC 32 ms
10,496 KB
testcase_23 AC 33 ms
10,624 KB
testcase_24 AC 31 ms
10,496 KB
testcase_25 AC 35 ms
10,496 KB
testcase_26 AC 30 ms
10,624 KB
testcase_27 AC 33 ms
10,496 KB
testcase_28 AC 34 ms
10,624 KB
testcase_29 AC 31 ms
10,624 KB
testcase_30 AC 39 ms
10,368 KB
testcase_31 AC 42 ms
10,496 KB
testcase_32 AC 40 ms
10,496 KB
testcase_33 AC 41 ms
10,368 KB
testcase_34 AC 41 ms
10,624 KB
testcase_35 AC 34 ms
10,368 KB
testcase_36 AC 34 ms
10,624 KB
testcase_37 AC 42 ms
10,496 KB
testcase_38 AC 40 ms
10,368 KB
testcase_39 AC 39 ms
10,368 KB
testcase_40 AC 46 ms
10,624 KB
testcase_41 AC 47 ms
10,624 KB
testcase_42 AC 48 ms
10,368 KB
testcase_43 AC 47 ms
10,624 KB
testcase_44 AC 37 ms
10,496 KB
testcase_45 AC 50 ms
10,496 KB
testcase_46 AC 37 ms
10,368 KB
testcase_47 AC 42 ms
10,496 KB
testcase_48 AC 41 ms
10,368 KB
testcase_49 AC 53 ms
10,624 KB
testcase_50 AC 1,642 ms
10,624 KB
testcase_51 AC 1,112 ms
10,496 KB
testcase_52 AC 1,572 ms
10,496 KB
testcase_53 TLE -
testcase_54 TLE -
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 #

import sys

N = int(input())

add = 1
sum = 0
while sum < N:
    sum += add
    if sum == N:
        print("YES")
        print(add)
        sys.exit()
    add += 1
print("NO")
        
0