結果

問題 No.489 株に挑戦
ユーザー 6soukiti296soukiti29
提出日時 2017-03-20 17:40:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 12,068 KB
最終ジャッジ日時 2023-09-18 12:35:09
合計ジャッジ時間 5,689 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 206 ms
7,832 KB
testcase_01 AC 139 ms
9,152 KB
testcase_02 AC 15 ms
7,856 KB
testcase_03 AC 15 ms
7,848 KB
testcase_04 AC 14 ms
7,804 KB
testcase_05 AC 15 ms
7,920 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 14 ms
7,804 KB
testcase_10 WA -
testcase_11 AC 14 ms
7,812 KB
testcase_12 AC 14 ms
7,812 KB
testcase_13 AC 15 ms
7,812 KB
testcase_14 WA -
testcase_15 AC 27 ms
7,852 KB
testcase_16 AC 227 ms
9,300 KB
testcase_17 AC 48 ms
7,924 KB
testcase_18 AC 135 ms
8,392 KB
testcase_19 AC 115 ms
8,676 KB
testcase_20 AC 238 ms
9,916 KB
testcase_21 AC 70 ms
8,796 KB
testcase_22 WA -
testcase_23 AC 152 ms
7,856 KB
testcase_24 AC 277 ms
10,000 KB
testcase_25 AC 15 ms
7,800 KB
testcase_26 AC 235 ms
7,820 KB
testcase_27 WA -
testcase_28 AC 15 ms
7,856 KB
testcase_29 AC 14 ms
7,848 KB
testcase_30 AC 273 ms
11,028 KB
testcase_31 AC 305 ms
12,068 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 51 ms
8,640 KB
testcase_37 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,D,K = list(map(int,input().split()))
i = 0
j = 0
A = [0,0,0]
J = [10**6]
while i < N:
	
	l = int(input())
	j = J[0]
	if l > j:
		if A[2] < l - j:
			A = [i,len(J),l-j]

		J.append(i)
		if len(J) > D:
			J.pop(0)
	else:
		J = [l]
	i = i + 1
print(A[2]*K)
if A[2] != 0:
	print(A[0]-A[1],A[0])
0