結果
| 問題 | No.1897 Sum of 2nd Max |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-04-11 03:55:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 264 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 76,132 KB |
| 最終ジャッジ日時 | 2024-12-14 22:07:54 |
| 合計ジャッジ時間 | 93,221 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 TLE * 1 |
| other | AC * 1 TLE * 29 |
ソースコード
import sys input=sys.stdin.readline import itertools N, K = map(int,input().split()) l = [i for i in range(1,K+1)] listed = [sorted(v,reverse=True)[1] for v in itertools.product(l, repeat=N)] print(sum(listed))