結果
| 問題 |
No.791 うし数列
|
| コンテスト | |
| ユーザー |
koi_kotya
|
| 提出日時 | 2019-02-22 21:23:50 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 109 bytes |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-25 05:08:38 |
| 合計ジャッジ時間 | 2,124 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 3 |
コンパイルメッセージ
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"
puts -1
exit
end
end
puts n.size-1
koi_kotya