結果
問題 | No.909 たぴの配置 |
ユーザー |
|
提出日時 | 2022-10-25 18:53:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 332 ms / 3,000 ms |
コード長 | 419 bytes |
コンパイル時間 | 82 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 39,832 KB |
最終ジャッジ日時 | 2024-07-03 16:34:56 |
合計ジャッジ時間 | 7,505 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
def main(): origin = 10**9 N = int(input()) X = list(map(int, input().split())) Y = list(map(int, input().split())) distance = min(x+y for x, y in zip(X, Y)) print(distance) print(origin) for x, y in zip(X, Y): if x > y: print(origin + (distance - y)) else: print(origin + x) print(origin + distance) if __name__ == "__main__": main()