結果
| 問題 | No.3794 Super Chat |
| ユーザー |
|
| 提出日時 | 2026-11-13 22:32:37 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 38 ms / 2,000 ms |
| + 383µs | |
| コード長 | 535 bytes |
| 記録 | |
| コンパイル時間 | 98 ms |
| コンパイル使用メモリ | 64,256 KB |
| 実行使用メモリ | 53,548 KB |
| 最終ジャッジ日時 | 2026-11-13 22:32:46 |
| 合計ジャッジ時間 | 3,646 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 35 |
ソースコード
# https://github.com/robe2222555/atcoder-lib/blob/main/template/python/main.py import sys input = lambda: sys.stdin.readline().rstrip() def LI(): return list(map(int, input().split())) def II(): return int(input()) INF = 1<<60 from collections import defaultdict def solve(): N,M = LI() D = defaultdict(int) for _ in range(N): s,p = input().split() D[s] = int(p) ans = 0 for _ in range(M): ans += D[input()] print(ans) return def main(): T = 1 for _ in range(T): solve() return if __name__ == '__main__': main()