結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
Watson
|
| 提出日時 | 2017-07-28 11:30:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 5,000 ms |
| コード長 | 192 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-10-10 04:45:47 |
| 合計ジャッジ時間 | 1,122 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
N = int(input())
A = []
while N != 0:
if N >= 5 and N%2 == 1 or N == 3:
A.append("7")
N -= 3
if N == 2 or N >=4:
A.append("1")
N -= 2
print("".join(A))
Watson