結果
問題 | No.909 たぴの配置 |
ユーザー | iwkjosec |
提出日時 | 2019-10-18 21:34:02 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 751 bytes |
コンパイル時間 | 3,044 ms |
コンパイル使用メモリ | 104,472 KB |
実行使用メモリ | 59,760 KB |
最終ジャッジ日時 | 2023-09-07 21:30:23 |
合計ジャッジ時間 | 17,915 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 58 ms
21,600 KB |
testcase_02 | AC | 59 ms
21,796 KB |
testcase_03 | AC | 57 ms
23,756 KB |
testcase_04 | AC | 59 ms
23,708 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using static System.Console; using static System.Math; class Program { static void Main() { var N = int.Parse(ReadLine()); var X = ReadLine().Split().Select(int.Parse).ToArray(); var Y = ReadLine().Split().Select(int.Parse).ToArray(); var m = int.MaxValue; var k = 0; for (int i = 0; i < N; i++) { var d = X[i] + Y[i]; if (m > d) { m = d; k = X[i]; } } WriteLine(m); WriteLine(0); for (int i = 0; i < N; i++) { WriteLine(k); } WriteLine(m); } }