結果
| 問題 |
No.1806 Rotating Golem
|
| コンテスト | |
| ユーザー |
cax68080
|
| 提出日時 | 2022-01-23 15:52:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 395 bytes |
| コンパイル時間 | 359 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-29 16:48:23 |
| 合計ジャッジ時間 | 1,437 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
from sys import stdin
readline = stdin.readline
a = str(readline().rstrip('\n'))
if a == 'N':
news = {'N':0,'E':1,'S':2,'W':3}
elif a == 'E':
news = {'E':0,'S':1,'W':2,'N':3}
elif a == 'S':
news = {'S':0,'W':1,'N':2,'E':3}
elif a == 'W':
news = {'W':0,'N':1,'E':2,'S':3}
else:
news = {'N':0,'E':1,'S':2,'W':3}
b = str(readline().rstrip('\n'))
print(news[b])
cax68080