結果

問題 No.1090 ソーシャルディスタンス / Social Distance
ユーザー 67oYG9nh2YMmIci67oYG9nh2YMmIci
提出日時 2020-07-13 13:39:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 20,728 KB
最終ジャッジ日時 2024-04-25 03:00:08
合計ジャッジ時間 4,373 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 122 ms
16,420 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 38 ms
11,136 KB
testcase_06 WA -
testcase_07 AC 92 ms
14,960 KB
testcase_08 WA -
testcase_09 AC 96 ms
14,944 KB
testcase_10 AC 115 ms
16,280 KB
testcase_11 WA -
testcase_12 AC 100 ms
15,440 KB
testcase_13 WA -
testcase_14 AC 150 ms
18,464 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 32 ms
10,752 KB
testcase_18 WA -
testcase_19 AC 90 ms
14,892 KB
testcase_20 AC 82 ms
14,492 KB
testcase_21 AC 99 ms
15,436 KB
testcase_22 AC 30 ms
10,496 KB
testcase_23 WA -
testcase_24 AC 163 ms
20,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,D=map(int, input().split())
a=[int(i) for i in input().split()]
a.insert(0,0)
for i in range(1,len(a)):
    if a[i]-a[i-1] < D:
        a[i]=a[i-1]+D

print(*a)
0