結果
問題 |
No.1824 門\松\列
|
ユーザー |
|
提出日時 | 2022-02-27 22:31:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 572 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 137,088 KB |
最終ジャッジ日時 | 2024-07-05 22:08:03 |
合計ジャッジ時間 | 5,412 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 1 TLE * 1 -- * 2 |
ソースコード
N = int(input()) l = [] for i in range(N): k = N-i l.append(k) for i in range(N): k = N-i l.append(k) j = len(l) l2 = [] for a in range (j-2): A = l[a] for b in range (j-2-a): ab = a+b+1 B = l[ab] for c in range (j-2-a-b): abc = a+b+c+2 C = l[abc] if A<B: if C<B: if A != C: l2.append([A,B,C]) elif B<A: if B<C: if A != C: l2.append([A,B,C]) print(len(l2))