結果
| 問題 | No.632 穴埋め門松列 | 
| コンテスト | |
| ユーザー |  No | 
| 提出日時 | 2018-01-19 22:47:21 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 497 bytes | 
| コンパイル時間 | 1,997 ms | 
| コンパイル使用メモリ | 102,912 KB | 
| 実行使用メモリ | 17,536 KB | 
| 最終ジャッジ日時 | 2024-12-24 12:42:45 | 
| 合計ジャッジ時間 | 2,734 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 5 WA * 1 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace y
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine().Replace(" ","");
            string a = s.Replace("?", "1");
            string b = s.Replace("?", "4");
            if ((a[0] < a[1] && a[1] > a[2]) || (a[0] > a[1] && a[1] < a[2])) Console.Write("1");
            if ((a[0] < b[1] && b[1] > b[2]) || (b[0] > b[1] && b[1] < b[2])) Console.Write("4");
            Console.WriteLine();
        }
    }
}
            
            
            
        