結果
| 問題 |
No.1806 Rotating Golem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-04 21:35:29 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 241 bytes |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-06-11 11:33:04 |
| 合計ジャッジ時間 | 2,279 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
コンパイルメッセージ
Syntax OK
ソースコード
class String
def succ
case self
when "E"
"S"
when "S"
"W"
when "W"
"N"
when "N"
"E"
else
super
end
end
end
A = gets.chomp
B = gets.chomp
puts (A..).take_while { _1 != B }.count