結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2016-12-20 11:44:43 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 581 ms / 5,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 455 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 91,272 KB |
最終ジャッジ日時 | 2024-12-14 11:11:11 |
合計ジャッジ時間 | 3,295 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
Syntax OK
ソースコード
GET_NUMBER = gets.to_ioutput = 0remaining_match = GET_NUMBERunless (GET_NUMBER % 2).zero?output = 7remaining_match -= 3enduntil remaining_match == 0output = output * 10 + 1remaining_match -= 2endputs output