結果
問題 | No.632 穴埋め門松列 |
ユーザー |
|
提出日時 | 2018-06-28 10:46:02 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 28 ms / 1,000 ms |
コード長 | 368 bytes |
コンパイル時間 | 775 ms |
コンパイル使用メモリ | 111,296 KB |
実行使用メモリ | 26,996 KB |
最終ジャッジ日時 | 2024-06-30 23:18:52 |
合計ジャッジ時間 | 1,404 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using static System.Console; using System.Linq; namespace App { class Prog { static void Main() { var x = ReadLine().Split().ToArray(); if (x[1] == "?") { WriteLine("14"); return; } WriteLine((x[0] == "2" || x[2] == "2") ? "1" : "4"); } } }