Submission #3365925
Source Code Expand
import numpy as np import math def calc(A,B,C): a = np.linalg.norm(B - C) b = np.linalg.norm(C - A) c = np.linalg.norm(A - B) cosC = np.inner(A-C, B-C)/(b*a) if cosC <= 0: return 0 tanC = math.sqrt(1/(cosC**2)-1) return (1 - 1/cosC + tanC) * (a+b-c)/4 a = np.array(ai()) b = np.array(ai()) c = np.array(ai()) print(max(calc(a,b,c),calc(b,c,a),calc(c,a,b)))
Submission Info
Submission Time | |
---|---|
Task | B - Inscribed Bicycle |
User | krswrb |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 414 Byte |
Status | RE |
Exec Time | 149 ms |
Memory | 12504 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 500 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example0.txt, example1.txt |
All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, example0.txt, example1.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
000.txt | RE | 146 ms | 12504 KB |
001.txt | RE | 146 ms | 12504 KB |
002.txt | RE | 149 ms | 12504 KB |
003.txt | RE | 146 ms | 12504 KB |
004.txt | RE | 146 ms | 12408 KB |
005.txt | RE | 147 ms | 12504 KB |
006.txt | RE | 146 ms | 12504 KB |
007.txt | RE | 146 ms | 12504 KB |
008.txt | RE | 146 ms | 12504 KB |
009.txt | RE | 147 ms | 12376 KB |
010.txt | RE | 147 ms | 12504 KB |
011.txt | RE | 146 ms | 12504 KB |
012.txt | RE | 147 ms | 12504 KB |
013.txt | RE | 146 ms | 12504 KB |
014.txt | RE | 146 ms | 12248 KB |
015.txt | RE | 147 ms | 12500 KB |
example0.txt | RE | 147 ms | 12376 KB |
example1.txt | RE | 146 ms | 12500 KB |