結果
| 問題 |
No.547 未知の言語
|
| コンテスト | |
| ユーザー |
neko_the_shadow
|
| 提出日時 | 2017-10-15 12:49:10 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 534 bytes |
| コンパイル時間 | 1,382 ms |
| コンパイル使用メモリ | 111,284 KB |
| 実行使用メモリ | 27,304 KB |
| 最終ジャッジ日時 | 2024-06-26 02:50:53 |
| 合計ジャッジ時間 | 3,400 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)
{
var n = int.Parse(Console.ReadLine());
var words1 = Console.ReadLine().Split();
var words2 = Console.ReadLine().Split();
var idx = Enumerable.Range(0, n).First((i) => words1[i] != words2[i]);
Console.WriteLine(idx + 1);
Console.WriteLine(words1[idx]);
Console.WriteLine(words2[idx]);
}
}
neko_the_shadow