結果
問題 |
No.83 最大マッチング
|
ユーザー |
|
提出日時 | 2025-05-07 16:05:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 300 bytes |
コンパイル時間 | 240 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 820,808 KB |
最終ジャッジ日時 | 2025-05-07 16:05:26 |
合計ジャッジ時間 | 7,530 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 RE * 1 |
other | WA * 2 MLE * 1 -- * 7 |
ソースコード
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)