結果
| 問題 | No.1806 Rotating Golem |
| コンテスト | |
| ユーザー |
kou_kkk
|
| 提出日時 | 2024-03-27 22:12:09 |
| 言語 | Nim (2.2.10 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 229µs | |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 1,802 ms |
| コンパイル使用メモリ | 67,624 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-06 19:26:06 |
| 合計ジャッジ時間 | 3,082 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
const
xs = ["E", "S", "W", "N", "E", "S", "W"]
let
a, b = readLine stdin
var
flg = false
cnt: int
for x in xs:
if x == a:
cnt = 0
flg = true
if flg:
if x == b:
echo cnt
quit()
inc cnt
kou_kkk