結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-19 09:35:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 275 bytes |
| コンパイル時間 | 191 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 18,924 KB |
| 最終ジャッジ日時 | 2024-09-19 08:15:23 |
| 合計ジャッジ時間 | 6,979 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 5 TLE * 1 -- * 3 |
ソースコード
N = int(input())
match = {1: 0, 2: 1, 5: 5, 4: 4, 3: 7, 7: 8, 6: 9}
res = 0
i = 1
while N > 0:
res *= i
if N >= 5:
res += 7
N -= 3
elif N >= 4:
res += 1
N -= 2
else:
res += match[N]
N -= N
i *= 10
print(res)