結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2017-09-17 17:26:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 5,000 ms |
コード長 | 516 bytes |
コンパイル時間 | 328 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-11-08 01:56:14 |
合計ジャッジ時間 | 1,262 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import sys try: import mydebug def dprint(*objects): print(*objects) except: def dprint(*objects, sep='', end='\n'): pass # d, p = [int(x) for x in input().split()] n = int(input()) d = {} d[0] = 6 # d[1] = 2 d[2] = 5 # d[3] = 5 # d[4] = 4 d[5] = 5 d[6] = 6 # d[7] = 3 d[8] = 7 d[9] = 6 no = (0, 2, 3, 6) r = {v: k for k, v in d.items() if k not in no} dprint(r) """ if n == 3: print(7) sys.exit(0) """ ans = "1" * (n // 2) if n % 2 == 1: ans = "7" + ans[1:] print(ans)