結果
| 問題 | No.1623 三角形の制作 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-23 21:48:05 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 383 bytes |
| 記録 | |
| コンパイル時間 | 245 ms |
| コンパイル使用メモリ | 96,236 KB |
| 実行使用メモリ | 126,080 KB |
| 最終ジャッジ日時 | 2026-08-17 12:33:25 |
| 合計ジャッジ時間 | 4,713 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 18 |
ソースコード
from bisect import bisect_left
N = int(input())
INF = 10**18
R = [0]+list(map(int,input().split()))+[INF]
G = list(map(int,input().split()))
B = list(map(int,input().split()))
R.sort()
ans = 0
for i in range(N):
for j in range(N):
g,b = G[i],B[j]
h = g+b
bis = bisect_left(R,h)
bis -= 1
a = max(bisect_left(R,g),bisect_left(R,b))-1
ans += bis-a
print(ans)