結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
18,176 KB
testcase_01 AC 25 ms
17,792 KB
testcase_02 AC 26 ms
17,920 KB
testcase_03 AC 451 ms
43,648 KB
testcase_04 AC 466 ms
39,476 KB
testcase_05 AC 484 ms
39,428 KB
testcase_06 AC 470 ms
39,548 KB
testcase_07 AC 476 ms
39,404 KB
testcase_08 AC 472 ms
39,528 KB
testcase_09 AC 468 ms
39,356 KB
testcase_10 AC 472 ms
39,660 KB
testcase_11 AC 464 ms
43,520 KB
testcase_12 AC 481 ms
43,392 KB
testcase_13 AC 468 ms
43,904 KB
testcase_14 AC 476 ms
43,904 KB
testcase_15 AC 466 ms
43,648 KB
testcase_16 AC 466 ms
43,136 KB
testcase_17 AC 464 ms
43,008 KB
testcase_18 AC 512 ms
42,368 KB
testcase_19 AC 474 ms
43,520 KB
testcase_20 AC 453 ms
42,240 KB
testcase_21 AC 468 ms
41,984 KB
testcase_22 AC 466 ms
41,856 KB
testcase_23 AC 472 ms
41,728 KB
testcase_24 AC 522 ms
41,600 KB
testcase_25 AC 472 ms
41,600 KB
testcase_26 AC 458 ms
41,472 KB
testcase_27 AC 458 ms
41,216 KB
testcase_28 AC 459 ms
41,088 KB
testcase_29 AC 454 ms
40,960 KB
testcase_30 AC 457 ms
40,960 KB
testcase_31 AC 454 ms
40,832 KB
testcase_32 AC 461 ms
40,832 KB
testcase_33 AC 460 ms
40,832 KB
testcase_34 AC 460 ms
40,448 KB
testcase_35 AC 460 ms
40,320 KB
testcase_36 AC 453 ms
40,448 KB
testcase_37 AC 454 ms
40,320 KB
testcase_38 AC 449 ms
40,192 KB
testcase_39 AC 448 ms
40,192 KB
testcase_40 AC 456 ms
39,936 KB
testcase_41 AC 27 ms
18,176 KB
testcase_42 AC 27 ms
18,176 KB
testcase_43 AC 27 ms
18,176 KB
testcase_44 AC 65 ms
20,480 KB
testcase_45 AC 62 ms
20,224 KB
testcase_46 AC 65 ms
20,352 KB
testcase_47 AC 383 ms
38,912 KB
testcase_48 AC 374 ms
40,960 KB
testcase_49 AC 390 ms
40,064 KB
testcase_50 AC 460 ms
40,576 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

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);

            foreach(var x in B){
                var u = ~Array.BinarySearch(A, x + 0.5d);
                var l = ~Array.BinarySearch(A, x - 0.5d);
                Console.Write(u - l + " ");
            }
        }
    }
}
0