結果
| 問題 | No.331 CodeRunnerでやれ |
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2023-12-22 10:48:41 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 871 bytes |
| 記録 | |
| コンパイル時間 | 452 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 40,864 KB |
| 平均クエリ数 | 727.82 |
| 最終ジャッジ日時 | 2026-04-14 07:01:00 |
| 合計ジャッジ時間 | 6,706 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 WA * 7 RE * 7 |
ソースコード
N=int(input())
seen=set()
def F():
input()
print("F")
def B():
input()
print("B")
def L():
input()
print("L")
def R():
input()
print("R")
def solve(x,y):
seen.add((x,y))
le=input()
if le=="Merry Christmas!":
exit()
le=int(le)
print("F")
if le and not (x+1,y) in seen:
solve(x+1,y)
B()
L()
le=input()
if le=="Merry Christmas!":
exit()
le=int(le)
print("F")
if le and not (x,y+1) in seen:
solve(x,y+1)
B()
le=input()
if le=="Merry Christmas!":
exit()
le=int(le)
print("F")
if le and not (x-1,y) in seen:
solve(x-1,y)
B()
le=input()
if le=="Merry Christmas!":
exit()
le=int(le)
print("F")
if le and not (x,y-1) in seen:
solve(x,y-1)
B()
print("F")
solve(0,0)
vwxyz