結果
| 問題 | No.1623 三角形の制作 |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2021-07-24 06:58:26 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 357 ms / 2,000 ms |
| + 639µs | |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 1,006 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 127,596 KB |
| 最終ジャッジ日時 | 2026-08-18 05:31:58 |
| 合計ジャッジ時間 | 6,714 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
import sys
input = sys.stdin.readline
from collections import Counter
n=int(input())
R=Counter(map(int,input().split()))
G=Counter(map(int,input().split()))
B=Counter(map(int,input().split()))
S=[0]*(7*10**3+5)
for r in R:
S[r]+=R[r]
for i in range(1,6*10**3+5):
S[i]+=S[i-1]
ANS=0
for g in G:
for b in B:
ANS+=G[g]*B[b]*(S[g+b-1]-S[max(g,b)-1])
print(ANS)
titia