結果
問題 |
No.83 最大マッチング
|
ユーザー |
|
提出日時 | 2025-05-07 16:08:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 512 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 13,568 KB |
最終ジャッジ日時 | 2025-05-07 16:08:42 |
合計ジャッジ時間 | 2,062 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 RE * 1 |
other | WA * 6 RE * 4 |
ソースコード
from functools import reduce n= int(input()) def max_num(n): max= [] if n % 2 ==0: while n > 2: max.append(1) n -= 2 else: max.append(7) n -= 3 while n > 2: max.append(1) n -= 2 new_max = int(reduce(lambda x, y: x + y, [str(x) for x in max])) print(new_max) max_num(n)