結果

問題 No.83 最大マッチング
ユーザー Shintani TeppeiShintani Teppei
提出日時 2017-10-31 17:36:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 110 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 11,392 KB
実行使用メモリ 15,304 KB
最終ジャッジ日時 2023-08-14 13:26:51
合計ジャッジ時間 2,371 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,132 KB
testcase_01 AC 80 ms
15,124 KB
testcase_02 AC 79 ms
15,080 KB
testcase_03 AC 79 ms
15,068 KB
testcase_04 AC 79 ms
15,016 KB
testcase_05 AC 77 ms
15,128 KB
testcase_06 AC 79 ms
15,192 KB
testcase_07 AC 79 ms
15,152 KB
testcase_08 AC 78 ms
15,224 KB
testcase_09 AC 78 ms
15,148 KB
testcase_10 AC 79 ms
15,304 KB
testcase_11 AC 82 ms
15,076 KB
testcase_12 AC 82 ms
15,020 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

MATCH = [6, 2, 5, 5, 4, 5, 6, 3, 7, 6]

n = gets.to_i
ans = "1" * (n / 2)
ans[0] = "7" if n % 2 == 1

puts ans
0