結果
問題 |
No.83 最大マッチング
|
ユーザー |
![]() |
提出日時 | 2019-11-19 00:01:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 358 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 14,208 KB |
最終ジャッジ日時 | 2024-10-02 14:35:02 |
合計ジャッジ時間 | 1,110 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 3 WA * 3 RE * 4 |
ソースコード
# n = [int(input()) for i in range(1)] n = int(input()) answer = [] if n%2 == 0: for i in range(int(n/2)): answer.append(1) else: for i in range(int(n/2) - 1): answer.append(1) answer.append(7) sorted_answer = sorted(answer) maped_sorted_answer = map(str, sorted_answer) res = ''.join(maped_sorted_answer) print(int(res))