結果
| 問題 | No.791 うし数列 |
| コンテスト | |
| ユーザー |
koi_kotya
|
| 提出日時 | 2019-02-22 21:23:50 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 109 bytes |
| 記録 | |
| コンパイル時間 | 410 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-05-19 14:13:45 |
| 合計ジャッジ時間 | 2,107 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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