結果
| 問題 | No.1623 三角形の制作 | 
| コンテスト | |
| ユーザー |  𖧱𖦸𖥩𖥣𖥩𖥣 | 
| 提出日時 | 2024-05-02 10:49:10 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 363 bytes | 
| コンパイル時間 | 160 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 56,732 KB | 
| 最終ジャッジ日時 | 2024-11-22 23:59:18 | 
| 合計ジャッジ時間 | 67,856 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | TLE * 2 | 
| other | TLE * 19 | 
ソースコード
n = int(input()) r = list(map(int,input().split())) g = list(map(int,input().split())) b = list(map(int,input().split())) rls = [0] * 3001 gls = [0] * 3001 bls = [0] * 3001 for i in r: rls[i] += 1 for i in g: gls[i] += 1 for i in b: bls[i] += 1 c = 0 for i in range(1, 3001): for j in range(1, i+1): c += rls[i] * gls[j] * sum(bls[max(1, i-j):i+1]) print(c)
