結果

問題 No.1734 Decreasing Elements
ユーザー ああああ
提出日時 2024-01-23 10:55:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 158 bytes
コンパイル時間 1,195 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 38,544 KB
最終ジャッジ日時 2024-01-23 10:55:23
合計ジャッジ時間 11,454 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
16,660 KB
testcase_01 AC 29 ms
9,856 KB
testcase_02 AC 29 ms
9,856 KB
testcase_03 AC 29 ms
9,856 KB
testcase_04 AC 29 ms
9,856 KB
testcase_05 AC 29 ms
9,856 KB
testcase_06 AC 28 ms
9,856 KB
testcase_07 AC 33 ms
9,984 KB
testcase_08 AC 35 ms
9,984 KB
testcase_09 AC 32 ms
9,984 KB
testcase_10 AC 39 ms
10,112 KB
testcase_11 AC 317 ms
19,280 KB
testcase_12 AC 171 ms
16,780 KB
testcase_13 AC 327 ms
20,556 KB
testcase_14 AC 1,017 ms
31,404 KB
testcase_15 AC 506 ms
23,128 KB
testcase_16 AC 719 ms
31,872 KB
testcase_17 AC 1,195 ms
31,872 KB
testcase_18 AC 1,256 ms
31,872 KB
testcase_19 TLE -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
z=0
for i in range(n) :
	if a[i] == 0 :
		z+=1
	else:
		a=[aj-a[i] if aj>=a[i] else aj for aj in a]
print(n-z)
0