結果
| 問題 | No.83 最大マッチング |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-19 09:33:39 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 226 bytes |
| 記録 | |
| コンパイル時間 | 542 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 20,580 KB |
| 最終ジャッジ日時 | 2026-04-07 17:08:34 |
| 合計ジャッジ時間 | 3,773 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | WA * 6 RE * 4 |
ソースコード
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 >= 4:
res = 1
N -= 2
else:
res += match[N]
N -= N
i *= 10
print(res)