結果

問題 No.83 最大マッチング
ユーザー mizocodermizocoder
提出日時 2018-08-02 10:47:00
言語 Ruby
(3.3.0)
結果
AC  
実行時間 112 ms / 5,000 ms
コード長 73 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 11,900 KB
実行使用メモリ 16,352 KB
最終ジャッジ日時 2023-10-19 21:00:31
合計ジャッジ時間 1,959 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
16,096 KB
testcase_01 AC 85 ms
16,096 KB
testcase_02 AC 85 ms
16,096 KB
testcase_03 AC 83 ms
16,096 KB
testcase_04 AC 85 ms
16,096 KB
testcase_05 AC 85 ms
16,096 KB
testcase_06 AC 87 ms
16,096 KB
testcase_07 AC 84 ms
16,096 KB
testcase_08 AC 85 ms
16,096 KB
testcase_09 AC 85 ms
16,096 KB
testcase_10 AC 99 ms
16,144 KB
testcase_11 AC 111 ms
16,352 KB
testcase_12 AC 112 ms
16,352 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i

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

print ans.to_i
0