結果

問題 No.201 yukicoderじゃんけん
ユーザー qwrtpsfg
提出日時 2017-08-22 23:28:25
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 820 bytes
コンパイル時間 850 ms
コンパイル使用メモリ 109,788 KB
実行使用メモリ 28,040 KB
最終ジャッジ日時 2024-10-15 04:27:36
合計ジャッジ時間 5,626 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 11 OLE * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;
using System.Collections.Generic;

public class yukicoder
{

    public static void Main()
    {
        string[] a = Console.ReadLine().Split(' ');
        string[] b = Console.ReadLine().Split(' ');
        
        if(a[1].Length == b[1].Length)
        {
            for(int i = 0; i < a[1].Length; i++)
            {
                if(int.Parse(a[1].Substring(i, 1)) > int.Parse(b[1].Substring(i, 1)))
                {
                    Console.WriteLine(a[1]);
                }
                else
                {
                    Console.WriteLine(b[1]);
                }
            }
        }
        if(a[1].Length > b[1].Length)
        {
            Console.WriteLine(a[0]);
        }
        else
        {
            Console.WriteLine(b[0]);
        }
    }
}
0