結果
| 問題 | No.3794 Super Chat |
| ユーザー |
テナガザル
|
| 提出日時 | 2026-11-13 22:33:06 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 430µs | |
| コード長 | 388 bytes |
| 記録 | |
| コンパイル時間 | 1,252 ms |
| コンパイル使用メモリ | 181,512 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-11-13 22:33:27 |
| 合計ジャッジ時間 | 3,198 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 35 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
int main()
{
int n, m;
cin >> n >> m;
map<string, int> mp;
long long ans = 0;
for (int i = 0; i < n; ++i)
{
string s;
int p;
cin >> s >> p;
mp[s] = p;
}
for (int i = 0; i < m; ++i)
{
string t;
cin >> t;
ans += mp[t];
}
cout << ans << endl;
}
テナガザル