結果

問題 No.648  お や す み 
ユーザー ch1channnch1channn
提出日時 2022-12-17 23:30:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 369 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 63,232 KB
最終ジャッジ日時 2024-04-28 14:54:51
合計ジャッジ時間 22,451 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 34 ms
52,096 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 40 ms
57,728 KB
testcase_21 AC 39 ms
57,856 KB
testcase_22 AC 39 ms
57,856 KB
testcase_23 AC 39 ms
57,856 KB
testcase_24 AC 35 ms
52,096 KB
testcase_25 AC 38 ms
57,856 KB
testcase_26 AC 36 ms
52,224 KB
testcase_27 AC 39 ms
57,728 KB
testcase_28 AC 38 ms
57,984 KB
testcase_29 AC 36 ms
51,968 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
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 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 45 ms
57,600 KB
testcase_51 AC 42 ms
57,728 KB
testcase_52 AC 42 ms
57,728 KB
testcase_53 AC 43 ms
57,728 KB
testcase_54 AC 46 ms
57,600 KB
testcase_55 AC 42 ms
57,728 KB
testcase_56 AC 43 ms
57,856 KB
testcase_57 AC 43 ms
57,984 KB
testcase_58 AC 43 ms
57,856 KB
testcase_59 AC 39 ms
57,856 KB
testcase_60 AC 33 ms
52,352 KB
testcase_61 AC 33 ms
52,096 KB
testcase_62 AC 33 ms
51,712 KB
testcase_63 AC 33 ms
51,584 KB
testcase_64 AC 35 ms
51,840 KB
testcase_65 AC 33 ms
51,840 KB
testcase_66 AC 34 ms
51,840 KB
testcase_67 AC 35 ms
51,584 KB
testcase_68 AC 35 ms
51,968 KB
testcase_69 AC 34 ms
51,712 KB
testcase_70 AC 34 ms
51,968 KB
testcase_71 TLE -
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
if sys.platform =='ios':
	import clipboard
	a=clipboard.get()
	a = a.split('\n')
	text = '\n'.join(a)
	with open('input_file.txt','w') as f:
		f.write(text)
	sys.stdin = open('input_file.txt')
	
n = int(input())
if n >= 10**18:
	exit(print("NO"))
ans = 0
for i in range(int((n)**0.5),n//2):
	ans = i*(i+1)//2
	if ans == n:
		exit(print("YES",i,sep="\n"))
		
0