結果
問題 |
No.1679 マスゲーム
|
ユーザー |
![]() |
提出日時 | 2024-07-17 11:32:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 804 ms / 2,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 271 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 22,616 KB |
最終ジャッジ日時 | 2024-07-17 11:33:10 |
合計ジャッジ時間 | 13,794 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
from collections import Counter N=int(input()) B=[[],[]] for i in range(N): a,b,t=map(int,input().split()) b-=t B[a].append(b) cnt=Counter(B[0]) ans=sum(cnt[b] for b in B[1]) print(ans)