結果

問題 No.648  お や す み 
ユーザー asaka189asaka189
提出日時 2018-02-22 22:09:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 182 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-14 06:46:31
合計ジャッジ時間 4,957 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
if ((1+8*n)**0.5) % 1 != 0:
	ans = int((-1+(1+8*n)**0.5)//2) + 1
else:
	ans = int((-1+(1+8*n)**0.5)//2)
if ans >= 36000:
	print('NO')
else:
	print('YES')
	print(ans)
0