結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー kuuso1kuuso1
提出日時 2016-05-22 02:42:18
言語 C#(csc)
(csc 3.9.0)
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 1,446 bytes
コンパイル時間 1,515 ms
コンパイル使用メモリ 109,440 KB
実行使用メモリ 50,348 KB
最終ジャッジ日時 2024-04-16 12:08:19
合計ジャッジ時間 35,443 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
19,712 KB
testcase_01 AC 35 ms
19,584 KB
testcase_02 AC 34 ms
19,712 KB
testcase_03 MLE -
testcase_04 AC 763 ms
47,052 KB
testcase_05 AC 757 ms
47,028 KB
testcase_06 AC 758 ms
46,868 KB
testcase_07 AC 755 ms
46,684 KB
testcase_08 AC 761 ms
46,580 KB
testcase_09 AC 758 ms
47,324 KB
testcase_10 AC 756 ms
46,844 KB
testcase_11 MLE -
testcase_12 MLE -
testcase_13 MLE -
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 MLE -
testcase_19 MLE -
testcase_20 AC 753 ms
45,912 KB
testcase_21 AC 749 ms
46,044 KB
testcase_22 AC 748 ms
45,920 KB
testcase_23 AC 757 ms
46,168 KB
testcase_24 AC 745 ms
47,836 KB
testcase_25 AC 758 ms
47,844 KB
testcase_26 MLE -
testcase_27 AC 758 ms
47,448 KB
testcase_28 AC 740 ms
47,652 KB
testcase_29 AC 750 ms
47,632 KB
testcase_30 AC 763 ms
47,476 KB
testcase_31 AC 748 ms
47,588 KB
testcase_32 AC 750 ms
47,580 KB
testcase_33 AC 745 ms
47,320 KB
testcase_34 AC 740 ms
47,448 KB
testcase_35 AC 742 ms
47,588 KB
testcase_36 AC 753 ms
47,440 KB
testcase_37 AC 739 ms
47,568 KB
testcase_38 AC 736 ms
47,424 KB
testcase_39 AC 745 ms
47,048 KB
testcase_40 AC 741 ms
47,548 KB
testcase_41 AC 34 ms
19,584 KB
testcase_42 AC 34 ms
19,584 KB
testcase_43 AC 35 ms
19,584 KB
testcase_44 AC 91 ms
25,728 KB
testcase_45 AC 93 ms
26,240 KB
testcase_46 AC 91 ms
25,984 KB
testcase_47 AC 443 ms
43,520 KB
testcase_48 AC 544 ms
44,544 KB
testcase_49 AC 504 ms
45,312 KB
testcase_50 AC 651 ms
45,852 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.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		
		long mod = (long)1e9+7;
		var D = new Dictionary<Pair,int>();
		var AM = A.Select(x=>new Pair(x,mod)).ToArray();
		var BM = B.Select(x=>new Pair(x,mod)).ToArray();
		
		for(int i=0;i<N;i++){
			if(!D.ContainsKey(AM[i]))D.Add(AM[i],0);
			D[AM[i]]++;
		}
		Console.WriteLine(String.Join(" ",BM.Select(x=> D.ContainsKey(x)?D[x]:0).ToArray()));
		
		
		
	}
	int N,M;
	long[] A,B;
	struct Pair{
		public long Q,M;
		public long Mod;
		public Pair(long x,long mod){
			Mod=mod;
			Q=x/mod;
			M=x%mod;
		}
	}
	
	public Sol(){
		var d = ria();
		N = d[0];
		M = d[1];
		A = rla();
		B = rla();
	}

	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(char sep=' '){return Console.ReadLine().Split(sep);}
	static int[] ria(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>int.Parse(e));}
	static long[] rla(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>long.Parse(e));}
	static double[] rda(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>double.Parse(e));}
}
0