結果

問題 No.591 (^o^)/
ユーザー Charlotte8687Charlotte8687
提出日時 2017-11-13 14:35:13
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 943 bytes
コンパイル時間 2,791 ms
コンパイル使用メモリ 101,560 KB
実行使用メモリ 26,564 KB
最終ジャッジ日時 2023-08-16 11:58:43
合計ジャッジ時間 3,813 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
24,280 KB
testcase_01 AC 91 ms
26,564 KB
testcase_02 AC 90 ms
24,292 KB
testcase_03 AC 91 ms
24,380 KB
testcase_04 AC 89 ms
24,140 KB
testcase_05 AC 89 ms
24,276 KB
testcase_06 AC 89 ms
24,288 KB
testcase_07 AC 89 ms
24,372 KB
testcase_08 AC 90 ms
24,376 KB
testcase_09 AC 90 ms
24,264 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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);
        }
    }
}
0