結果

問題 No.909 たぴの配置
ユーザー maspymaspy
提出日時 2020-02-01 21:01:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 638 ms / 3,000 ms
コード長 331 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 11,940 KB
実行使用メモリ 86,376 KB
最終ジャッジ日時 2023-10-19 00:21:01
合計ジャッジ時間 15,394 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 485 ms
42,420 KB
testcase_01 AC 485 ms
42,420 KB
testcase_02 AC 486 ms
42,420 KB
testcase_03 AC 485 ms
42,420 KB
testcase_04 AC 486 ms
42,420 KB
testcase_05 AC 630 ms
84,684 KB
testcase_06 AC 632 ms
86,112 KB
testcase_07 AC 623 ms
82,696 KB
testcase_08 AC 638 ms
84,948 KB
testcase_09 AC 635 ms
86,376 KB
testcase_10 AC 624 ms
82,960 KB
testcase_11 AC 618 ms
82,472 KB
testcase_12 AC 618 ms
83,628 KB
testcase_13 AC 634 ms
85,056 KB
testcase_14 AC 621 ms
82,960 KB
testcase_15 AC 624 ms
82,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

import numpy as np

data = np.fromstring(read(), np.int64, sep=' ')

N = data[0]
X = data[1:1+N]
Y = data[1+N:]

D = np.min(X+Y)
x = np.hstack([[0], np.minimum(D, X), [D]])

print(D)
print('\n'.join(x.astype(str)))
0