結果
| 問題 |
No.1077 Noelちゃんと星々4
|
| コンテスト | |
| ユーザー |
Kaku17132077
|
| 提出日時 | 2020-06-12 22:56:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 763 bytes |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-06-24 05:42:36 |
| 合計ジャッジ時間 | 1,591 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 20 |
ソースコード
N = int(input())
Y = list(map(int, input().split()))
def min_min(i = 0, n = N, *list_Y):
count =0
if i == n-1:
if list_Y[i] <= list_Y[i+1]:
return list_Y
else:
while(list_Y[i] > list_Y[i+1]):
list_Y[i+1] += 1
count += 1
return list_Y
if list_Y[i] <= list_Y[i+1]:
i += 1
min_min(i, n, *list_Y)
else:
if list_Y[i+1] <= list_Y[i+2]:
while(list_Y[i]>list_Y[i+1]):
list_Y[i] -= 1
count += 1
i += 1
else:
while(list_Y[i]>list_Y[i+1]):
list_Y[i+1] += 1
count += 1
i += 1
min_min(i, n, *list_Y)
min_min(0, N, Y)
Kaku17132077