結果

問題 No.547 未知の言語
ユーザー mencotton
提出日時 2017-12-25 22:23:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 666 bytes
コンパイル時間 983 ms
コンパイル使用メモリ 110,616 KB
実行使用メモリ 26,140 KB
最終ジャッジ日時 2024-06-26 02:56:13
合計ジャッジ時間 3,096 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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;
using System.Text;
using System.Threading.Tasks;

namespace template
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            string[] s1 = Console.ReadLine().Split();
            string[] s2 = Console.ReadLine().Split();
            for (int i = 0; i < n; i++)
            {
                if (s1[i] != s2[i])
                {
                    Console.WriteLine(i + 1);
                    Console.WriteLine(s1[i]);
                    Console.WriteLine(s2[i]);
                }
            }
        }
    }
}
0