結果

問題 No.1090 ソーシャルディスタンス / Social Distance
ユーザー Konton7Konton7
提出日時 2020-06-26 21:38:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 19,684 KB
最終ジャッジ日時 2023-09-18 03:29:33
合計ジャッジ時間 3,634 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 17 ms
7,784 KB
testcase_02 AC 93 ms
15,040 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 23 ms
8,872 KB
testcase_06 WA -
testcase_07 AC 70 ms
13,032 KB
testcase_08 WA -
testcase_09 AC 75 ms
13,048 KB
testcase_10 AC 89 ms
14,432 KB
testcase_11 WA -
testcase_12 AC 76 ms
13,652 KB
testcase_13 WA -
testcase_14 AC 120 ms
17,300 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 18 ms
8,216 KB
testcase_18 WA -
testcase_19 AC 69 ms
12,900 KB
testcase_20 AC 63 ms
12,808 KB
testcase_21 AC 76 ms
13,572 KB
testcase_22 AC 16 ms
7,844 KB
testcase_23 WA -
testcase_24 AC 132 ms
19,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, d = [int(v) for v in input().split()]
a = [0] + [int(v) for v in input().split()]
for i in range(n - 1):
    k = a[i + 1] - a[i]
    if k < d:
        a[i + 1] = a[i] + d
print(*a)
0