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