結果
| 問題 | No.3794 Super Chat |
| コンテスト | |
| ユーザー |
Cafe1942
|
| 提出日時 | 2026-11-07 12:44:19 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 64µs | |
| コード長 | 277 bytes |
| 記録 | |
| コンパイル時間 | 1,605 ms |
| コンパイル使用メモリ | 222,208 KB |
| 実行使用メモリ | 9,808 KB |
| 最終ジャッジ日時 | 2026-11-13 22:00:34 |
| 合計ジャッジ時間 | 3,907 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 35 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int N, M;
cin>>N>>M;
map<string,ll>T;
while(N--){
string S;
cin>>S;
ll P;
cin>>P;
T[S]=P;
}
ll ans=0;
while(M--){
string S;
cin>>S;
ans+=T[S];
}
cout<<ans;
return 0;
}
Cafe1942