結果

問題 No.83 最大マッチング
ユーザー Tsuneo YoshiokaTsuneo Yoshioka
提出日時 2014-12-02 23:42:52
言語 Ruby
(3.3.0)
結果
AC  
実行時間 88 ms / 5,000 ms
コード長 146 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 11,288 KB
実行使用メモリ 15,420 KB
最終ジャッジ日時 2023-09-02 01:10:44
合計ジャッジ時間 1,876 ms
ジャッジサーバーID
(参考情報)
judge15 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,292 KB
testcase_01 AC 78 ms
15,036 KB
testcase_02 AC 76 ms
15,328 KB
testcase_03 AC 75 ms
15,032 KB
testcase_04 AC 73 ms
15,176 KB
testcase_05 AC 74 ms
15,120 KB
testcase_06 AC 71 ms
15,036 KB
testcase_07 AC 74 ms
15,256 KB
testcase_08 AC 73 ms
15,036 KB
testcase_09 AC 75 ms
15,372 KB
testcase_10 AC 88 ms
15,420 KB
testcase_11 AC 88 ms
15,276 KB
testcase_12 AC 86 ms
15,396 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i

if n%2 == 1
    print "7"
    n -= 3
else
    print "1"
    n -= 2
end
while n > 0
    print "1"
    n -= 2
end
puts
0