結果
問題 | No.1623 三角形の制作 |
ユーザー | titia |
提出日時 | 2021-07-24 06:54:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 387 bytes |
コンパイル時間 | 279 ms |
コンパイル使用メモリ | 87,260 KB |
実行使用メモリ | 109,444 KB |
最終ジャッジ日時 | 2023-09-26 12:34:30 |
合計ジャッジ時間 | 8,735 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 98 ms
76,828 KB |
testcase_01 | AC | 96 ms
76,892 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 | 127 ms
90,228 KB |
testcase_13 | AC | 130 ms
94,892 KB |
testcase_14 | AC | 127 ms
92,444 KB |
testcase_15 | AC | 178 ms
109,008 KB |
testcase_16 | AC | 176 ms
109,084 KB |
testcase_17 | AC | 176 ms
109,064 KB |
testcase_18 | AC | 178 ms
106,184 KB |
testcase_19 | AC | 148 ms
109,256 KB |
testcase_20 | AC | 99 ms
76,928 KB |
ソースコード
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,3*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)