結果
| 問題 |
No.1108 移調
|
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2020-07-10 22:42:58 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 389 bytes |
| コンパイル時間 | 3,347 ms |
| コンパイル使用メモリ | 112,720 KB |
| 実行使用メモリ | 27,456 KB |
| 最終ジャッジ日時 | 2024-10-11 10:04:26 |
| 合計ジャッジ時間 | 2,458 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System.Linq;
using System;
public class Hello
{
static void Main()
{
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var h = int.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
Console.WriteLine(string.Join(" ", Array.ConvertAll(line, int.Parse).Select(x => x + h).ToArray()));
}
}
bluemegane