結果
| 問題 | No.1806 Rotating Golem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-04 21:35:29 |
| 言語 | Ruby (4.0.1) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 15,104 KB |
| 最終ジャッジ日時 | 2026-03-04 12:53:44 |
| 合計ジャッジ時間 | 1,441 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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