結果
| 問題 |
No.1390 Get together
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-12 21:39:32 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 143 bytes |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 16,128 KB |
| 最終ジャッジ日時 | 2024-07-19 20:41:44 |
| 合計ジャッジ時間 | 12,388 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 WA * 15 |
ソースコード
n,m=map(int,input().split()) a=0 C=[0]*(n+1) for i in range(n): b,c=map(int,input().split()) if C[c]>0 and C[c]!=b:a+=1 else:C[c]=b print(a)