結果
| 問題 |
No.8016 unordered_mapなるたけ落とすマン
|
| ユーザー |
|
| 提出日時 | 2018-12-17 22:01:21 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 84 ms / 1,000 ms |
| コード長 | 508 bytes |
| コンパイル時間 | 1,023 ms |
| コンパイル使用メモリ | 119,096 KB |
| 実行使用メモリ | 18,044 KB |
| 最終ジャッジ日時 | 2024-06-13 02:22:59 |
| 合計ジャッジ時間 | 9,276 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 48 |
ソースコード
import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.string;
void main() {
auto s = readln.split.map!(to!int);
auto N = s[0];
auto M = s[1];
auto A = readln.split.map!(to!long).array;
auto B = readln.split.map!(to!long).array;
int[long] mp;
foreach (a; A) mp[a] += 1;
B.map!(b => b in mp ? mp[b] : 0).map!(to!string).join(" ").writeln;
}