結果

問題 No.648  お や す み 
ユーザー matriematrie
提出日時 2020-12-24 00:03:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 83 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 11,788 KB
実行使用メモリ 10,204 KB
最終ジャッジ日時 2023-10-21 15:22:08
合計ジャッジ時間 4,558 ms
ジャッジサーバーID
(参考情報)
judge9 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n=int(input())
k=int((n*2)**.5)
t=k*(k+1)//2
print("NO" if t>n else "YES\n"+str(k))
0