結果
問題 | No.1390 Get together |
ユーザー |
|
提出日時 | 2021-05-11 10:57:25 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 922 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 112,896 KB |
最終ジャッジ日時 | 2024-09-21 16:20:26 |
合計ジャッジ時間 | 8,456 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 14 |
ソースコード
n,m = map(int,input().split())l = [set() for i in range(n+1)]for i in range(n):b,c = map(int,input().split())l[c].add(b)ans = 0for i in range(1,n+1):if len(l[i]) <= 1:continueans += len(l[i])-1print(ans)