結果
問題 |
No.3128 Isosceles Triangle
|
ユーザー |
👑 |
提出日時 | 2025-01-18 00:08:57 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 403 bytes |
コンパイル時間 | 1,829 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 168,892 KB |
最終ジャッジ日時 | 2025-01-18 00:10:15 |
合計ジャッジ時間 | 62,411 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 TLE * 20 |
ソースコード
N = int(input()) A = list(map(int, input().split())) assert len(A) == N ans = 0 for i in range(N): for j in range(i + 1, N): for k in range(j + 1, N): x, y, z = sorted([A[i], A[j], A[k]]) if len(set([x, y, z])) != 2: continue if x + y <= z: continue ans += 1 print(ans)