結果
| 問題 |
No.791 うし数列
|
| コンテスト | |
| ユーザー |
koi_kotya
|
| 提出日時 | 2019-02-22 21:24:35 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 124 bytes |
| コンパイル時間 | 36 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-25 05:13:01 |
| 合計ジャッジ時間 | 1,970 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 WA * 2 |
コンパイルメッセージ
Main.rb:4: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
n = gets.chomp
for i in 1..n.size-1
if n[i] != "3" || n[0] != "1"
puts -1
exit
end
end
puts n.size-1
koi_kotya