結果
問題 |
No.789 範囲の合計
|
ユーザー |
![]() |
提出日時 | 2019-02-17 20:43:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 220 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 36,900 KB |
最終ジャッジ日時 | 2024-10-01 20:38:59 |
合計ジャッジ時間 | 3,623 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 2 TLE * 1 -- * 12 |
ソースコード
n = int(input()) q = [] for i in range(n): b = list(map(int ,input().split())) q.append(b) ans = 0 for i in q: if i[0] == 1: ans += sum([j[2] for j in q if j[0] == 0 and j[1] < q.index(i)]) print(ans)