結果
| 問題 |
No.1390 Get together
|
| コンテスト | |
| ユーザー |
310icecrystal
|
| 提出日時 | 2023-05-01 20:23:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 235 bytes |
| コンパイル時間 | 210 ms |
| コンパイル使用メモリ | 82,364 KB |
| 実行使用メモリ | 112,796 KB |
| 最終ジャッジ日時 | 2024-11-20 16:51:46 |
| 合計ジャッジ時間 | 8,856 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 14 |
ソースコード
N,M = map(int,input().split())
color = [set() for _ in range(N+1)]
for i in range(N):
b,c = map(int,input().split())
color[c].add(b)
ans = 0
for i in range(1,N+1):
if color[i]:
ans += len(color[i]) - 1
print(ans)
310icecrystal