結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー AreTrashAreTrash
提出日時 2016-10-12 19:59:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 241 ms / 1,000 ms
コード長 626 bytes
コンパイル時間 1,117 ms
コンパイル使用メモリ 104,832 KB
実行使用メモリ 43,776 KB
最終ジャッジ日時 2024-05-01 19:36:36
合計ジャッジ時間 14,648 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
18,048 KB
testcase_01 AC 22 ms
17,920 KB
testcase_02 AC 21 ms
18,048 KB
testcase_03 AC 208 ms
43,776 KB
testcase_04 AC 241 ms
39,508 KB
testcase_05 AC 231 ms
39,348 KB
testcase_06 AC 228 ms
39,460 KB
testcase_07 AC 228 ms
39,180 KB
testcase_08 AC 233 ms
39,412 KB
testcase_09 AC 231 ms
39,384 KB
testcase_10 AC 237 ms
39,308 KB
testcase_11 AC 233 ms
43,520 KB
testcase_12 AC 236 ms
43,520 KB
testcase_13 AC 230 ms
43,776 KB
testcase_14 AC 234 ms
43,776 KB
testcase_15 AC 223 ms
43,520 KB
testcase_16 AC 232 ms
43,264 KB
testcase_17 AC 235 ms
43,008 KB
testcase_18 AC 231 ms
42,496 KB
testcase_19 AC 223 ms
43,008 KB
testcase_20 AC 235 ms
41,728 KB
testcase_21 AC 224 ms
41,984 KB
testcase_22 AC 222 ms
41,728 KB
testcase_23 AC 217 ms
41,728 KB
testcase_24 AC 223 ms
41,600 KB
testcase_25 AC 220 ms
41,472 KB
testcase_26 AC 216 ms
41,216 KB
testcase_27 AC 218 ms
41,216 KB
testcase_28 AC 219 ms
40,832 KB
testcase_29 AC 216 ms
40,832 KB
testcase_30 AC 222 ms
40,960 KB
testcase_31 AC 214 ms
40,832 KB
testcase_32 AC 217 ms
40,832 KB
testcase_33 AC 221 ms
40,832 KB
testcase_34 AC 241 ms
40,704 KB
testcase_35 AC 208 ms
40,192 KB
testcase_36 AC 221 ms
40,192 KB
testcase_37 AC 209 ms
40,320 KB
testcase_38 AC 211 ms
40,064 KB
testcase_39 AC 207 ms
40,320 KB
testcase_40 AC 211 ms
39,936 KB
testcase_41 AC 23 ms
17,920 KB
testcase_42 AC 22 ms
18,048 KB
testcase_43 AC 22 ms
18,048 KB
testcase_44 AC 42 ms
20,480 KB
testcase_45 AC 40 ms
20,352 KB
testcase_46 AC 40 ms
20,352 KB
testcase_47 AC 190 ms
38,784 KB
testcase_48 AC 198 ms
41,216 KB
testcase_49 AC 196 ms
39,936 KB
testcase_50 AC 229 ms
40,448 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.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