結果
| 問題 | No.791 うし数列 |
| コンテスト | |
| ユーザー |
wonda_t_coffee
|
| 提出日時 | 2020-01-30 09:30:17 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| コード長 | 72 bytes |
| 記録 | |
| コンパイル時間 | 130 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-04-05 07:34:23 |
| 合計ジャッジ時間 | 1,830 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
コンパイルメッセージ
Main.rb:5: warning: ambiguous first argument; put parentheses or a space even after `-` operator Syntax OK
ソースコード
n = gets.chomp if n.match?(/^13+$/) puts n.size - 1 else puts -1 end
wonda_t_coffee