結果
問題 | No.1623 三角形の制作 |
ユーザー | aaaaaaaaaa2230 |
提出日時 | 2021-07-23 22:53:43 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 471 bytes |
コンパイル時間 | 1,253 ms |
コンパイル使用メモリ | 87,056 KB |
実行使用メモリ | 209,688 KB |
最終ジャッジ日時 | 2023-09-25 23:38:06 |
合計ジャッジ時間 | 9,916 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 322 ms
203,100 KB |
testcase_01 | AC | 338 ms
202,884 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 357 ms
194,172 KB |
testcase_13 | AC | 366 ms
193,084 KB |
testcase_14 | AC | 365 ms
193,456 KB |
testcase_15 | AC | 397 ms
205,920 KB |
testcase_16 | AC | 397 ms
206,084 KB |
testcase_17 | AC | 387 ms
206,112 KB |
testcase_18 | AC | 408 ms
197,916 KB |
testcase_19 | AC | 365 ms
207,964 KB |
testcase_20 | AC | 395 ms
203,036 KB |
ソースコード
n = int(input()) M = 4*10**3+5 R = [0]*M G = [0]*M B = [0]*M for r in map(int,input().split()): R[r] += 1 for g in map(int,input().split()): G[g] += 1 for b in map(int,input().split()): B[b] += 1 GB = [[0]*M for i in range(M)] for i in range(M//2): for j in range(M//2): GB[max(i,j)][i+j] += G[i]*B[j] for i in range(1,M): R[i] += R[i-1] ans = 0 for i in range(M): for j in range(i,M): ans += (R[j-1]-R[i-1])*GB[i][j] print(ans)