結果

問題 No.547 未知の言語
ユーザー kmtrc130
提出日時 2019-03-18 16:07:06
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 598 bytes
コンパイル時間 946 ms
コンパイル使用メモリ 103,424 KB
実行使用メモリ 18,176 KB
最終ジャッジ日時 2024-07-18 10:41:38
合計ジャッジ時間 2,797 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

class Program
{
    public void Solve()
    {
        int N = int.Parse(Console.ReadLine());
        string[] S = Console.ReadLine().Split(' ');
        string[] T = Console.ReadLine().Split(' ');

        for (int i = 0; i < N; i++)
        {
            if (S[i] == T[i]) continue;

            Console.WriteLine(i + 1);
            Console.WriteLine(S[i]);
            Console.WriteLine(T[i]);
            break;
        }
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0