結果
| 問題 |
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_i output = 0 remaining_match = GET_NUMBER unless (GET_NUMBER % 2).zero? output = 7 remaining_match -= 3 end until remaining_match == 0 output = output * 10 + 1 remaining_match -= 2 end puts output