結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー AreTrash
提出日時 2016-10-12 19:48:09
言語 C#(csc)
(csc 3.9.0)
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 611 bytes
コンパイル時間 1,074 ms
コンパイル使用メモリ 112,636 KB
実行使用メモリ 53,840 KB
最終ジャッジ日時 2024-11-22 01:43:17
合計ジャッジ時間 14,378 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 MLE * 37
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

namespace No3016{
    public class Program{
        public static void Main(string[] args){
            Console.ReadLine();
            var A = Array.ConvertAll(Console.ReadLine().Split(' '), double.Parse);
            var B = Array.ConvertAll(Console.ReadLine().Split(' '), double.Parse);;
            Array.Sort(A);

            var C = new List<int>();
            foreach(var x in B){
                C.Add(Array.BinarySearch(A, x - 0.5d) - Array.BinarySearch(A, x + 0.5d));
            }
            Console.WriteLine(string.Join(" ", C));
        }
    }
}
0