結果
| 問題 |
No.632 穴埋め門松列
|
| コンテスト | |
| ユーザー |
Risen
|
| 提出日時 | 2018-01-19 21:26:43 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 1,000 ms |
| コード長 | 589 bytes |
| コンパイル時間 | 1,223 ms |
| コンパイル使用メモリ | 106,880 KB |
| 実行使用メモリ | 18,816 KB |
| 最終ジャッジ日時 | 2024-12-24 12:10:52 |
| 合計ジャッジ時間 | 1,885 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
コンパイルメッセージ
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;
class Solution
{
static void Main()
{
var c = Console.ReadLine().Split(' ');
var result = "";
var one = c.Select(a => (a != "?") ? int.Parse(a) : 1).ToArray();
if (one.Max() == one[1] || one.Min() == one[1])
{
result += "1";
}
var four = c.Select(a => (a != "?") ? int.Parse(a) : 4).ToArray();
if (four.Max() == four[1] || four.Min() == four[1])
{
result += "4";
}
Console.WriteLine(result);
}
}
Risen