結果
| 問題 | No.591 (^o^)/ | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-11-13 14:35:13 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 54 ms / 2,000 ms | 
| コード長 | 943 bytes | 
| コンパイル時間 | 998 ms | 
| コンパイル使用メモリ | 110,488 KB | 
| 実行使用メモリ | 32,256 KB | 
| 最終ジャッジ日時 | 2024-11-25 00:24:51 | 
| 合計ジャッジ時間 | 2,129 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
コンパイルメッセージ
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.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            string eye = Console.ReadLine();
            if (!Regex.IsMatch(eye, @".") || eye.Length != 1)
            {
                Console.WriteLine("Invalid character was included");
                return;
            }
            string mouth = Console.ReadLine();
            if (!Regex.IsMatch(mouth, @".") || mouth.Length != 1)
            {
                Console.WriteLine("Invalid character was included");
                return;
            }
            Output(eye, mouth);
        }
        public static void Output(string eye, string mouth)
        {
            string face = "(" + eye + mouth + eye + ")/";
            Console.WriteLine(face);
        }
    }
}
            
            
            
        