結果
| 問題 |
No.775 tatyamと素数大富豪(hard)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-03 21:04:03 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 359 bytes |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-14 01:43:49 |
| 合計ジャッジ時間 | 1,236 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 2 |
| other | AC * 4 WA * 6 |
ソースコード
#!/usr/bin/python3
import itertools
def sort_weight(_n):
if len(_n)==2:
return float(_n)
if len(_n)==1:
return float(_n)*10+9.5
N,K=map(int,input().split())
l=input().split()
l2=sorted(l, key=sort_weight,reverse=True)
count=0
for i in itertools.permutations(l2):
print("".join(i))
count=count+1
if count==K:
break