結果
問題 |
No.83 最大マッチング
|
ユーザー |
![]() |
提出日時 | 2025-07-15 21:10:40 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 5,000 ms |
コード長 | 190 bytes |
コンパイル時間 | 255 ms |
コンパイル使用メモリ | 82,248 KB |
実行使用メモリ | 53,788 KB |
最終ジャッジ日時 | 2025-07-15 21:10:42 |
合計ジャッジ時間 | 1,601 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
N = int(input()) sho, amari = divmod(N, 2) if amari == 0: # 1 をならべる ans = ['1'] * sho else: # 頭だけ7 ans = ['7'] ans.extend(['1']*(sho - 1)) print(''.join(ans))