結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー AreTrash
提出日時 2016-10-12 19:59:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 261 ms / 1,000 ms
コード長 626 bytes
コンパイル時間 4,505 ms
コンパイル使用メモリ 102,656 KB
実行使用メモリ 43,904 KB
最終ジャッジ日時 2024-11-22 01:47:49
合計ジャッジ時間 14,123 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 48
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.IO;

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

            foreach(var x in B){
                sw.Write(Array.BinarySearch(A, x - 0.5d) - Array.BinarySearch(A, x + 0.5d) + " ");
            }
            sw.Flush();
        }
    }
}
0