結果

問題 No.547 未知の言語
ユーザー phsplsphspls
提出日時 2020-03-28 15:13:49
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 453 bytes
コンパイル時間 4,814 ms
コンパイル使用メモリ 105,864 KB
実行使用メモリ 23,788 KB
最終ジャッジ日時 2023-08-30 17:45:33
合計ジャッジ時間 5,531 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
23,652 KB
testcase_01 AC 59 ms
21,656 KB
testcase_02 AC 59 ms
21,692 KB
testcase_03 AC 59 ms
21,660 KB
testcase_04 AC 60 ms
21,748 KB
testcase_05 AC 59 ms
21,588 KB
testcase_06 AC 60 ms
23,648 KB
testcase_07 AC 60 ms
21,792 KB
testcase_08 AC 60 ms
21,692 KB
testcase_09 AC 59 ms
21,776 KB
testcase_10 AC 59 ms
21,608 KB
testcase_11 AC 59 ms
19,604 KB
testcase_12 AC 59 ms
21,596 KB
testcase_13 AC 59 ms
21,692 KB
testcase_14 AC 60 ms
21,712 KB
testcase_15 AC 60 ms
21,740 KB
testcase_16 AC 60 ms
21,724 KB
testcase_17 AC 60 ms
21,744 KB
testcase_18 AC 59 ms
23,724 KB
testcase_19 AC 59 ms
23,664 KB
testcase_20 AC 59 ms
21,732 KB
testcase_21 AC 60 ms
21,736 KB
testcase_22 AC 60 ms
21,736 KB
testcase_23 AC 59 ms
21,620 KB
testcase_24 AC 59 ms
21,620 KB
testcase_25 AC 60 ms
23,788 KB
testcase_26 AC 60 ms
21,728 KB
testcase_27 AC 60 ms
21,748 KB
testcase_28 AC 58 ms
21,608 KB
testcase_29 AC 59 ms
21,576 KB
testcase_30 AC 59 ms
21,692 KB
testcase_31 AC 60 ms
21,636 KB
testcase_32 AC 60 ms
21,676 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.Linq;

public class P0547 {
    public static void Main() {
        var n = int.Parse(Console.ReadLine().Trim());
        var s = Console.ReadLine().Trim().Split(' ').ToList();
        var t = Console.ReadLine().Trim().Split(' ').ToList();
        var idx = Enumerable.Range(0, n).Where(i => s[i] != t[i]).First();
        Console.WriteLine(idx+1);
        Console.WriteLine(s[idx]);
        Console.WriteLine(t[idx]);
    }
}
0