結果

問題 No.83 最大マッチング
ユーザー neko_the_shadowneko_the_shadow
提出日時 2017-01-22 12:10:05
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 215 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 11,800 KB
最終ジャッジ日時 2023-08-24 19:59:03
合計ジャッジ時間 1,361 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
11,776 KB
testcase_01 AC 16 ms
11,768 KB
testcase_02 AC 16 ms
11,604 KB
testcase_03 AC 16 ms
11,580 KB
testcase_04 AC 16 ms
11,580 KB
testcase_05 AC 16 ms
11,800 KB
testcase_06 AC 16 ms
11,680 KB
testcase_07 AC 16 ms
11,668 KB
testcase_08 AC 16 ms
11,684 KB
testcase_09 AC 16 ms
11,524 KB
testcase_10 AC 16 ms
11,748 KB
testcase_11 AC 17 ms
11,716 KB
testcase_12 AC 16 ms
11,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(let ((n (read)))
    (display
        (if (even? n)
            (make-string (quotient n 2) #\1)
            (let ((x (- (quotient n 2) 1)))
                (string-append "7" (make-string x #\1)))))
    (newline))
0