結果
問題 |
No.1115 二つの数列 / Two Sequences
|
ユーザー |
|
提出日時 | 2020-07-17 22:44:27 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 805 bytes |
コンパイル時間 | 1,090 ms |
コンパイル使用メモリ | 104,704 KB |
実行使用メモリ | 54,016 KB |
最終ジャッジ日時 | 2024-11-30 01:46:54 |
合計ジャッジ時間 | 54,120 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 5 |
other | AC * 5 WA * 14 TLE * 16 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { var n = int.Parse(ReadLine()); //var s = Conasole.ReadLine().Split(' ') var a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var b = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var list = new List<int>(a); var ans = 0; for (int i = 0; i < n; i++) { int b_value = b[i]; ans += list.IndexOf(b_value); } WriteLine(ans); Out.Flush(); } } }