結果
問題 | No.1390 Get together |
ユーザー |
|
提出日時 | 2021-08-29 10:13:08 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 220 ms |
コンパイル使用メモリ | 82,160 KB |
実行使用メモリ | 115,496 KB |
最終ジャッジ日時 | 2024-11-22 03:50:38 |
合計ジャッジ時間 | 9,064 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 6 WA * 11 RE * 12 |
ソースコード
N,M=map(int,input().split())box=[set() for _ in range(N)] #色ごとに箱を格納for _ in range(M):b,c=map(int,input().split())box[c-1].add(b)ans=0for i in range(N):ans+=max(0,len(box[i])-1)print(ans)