結果

問題 No.2257 Swim and Sleep
ユーザー shobonvipshobonvip
提出日時 2023-03-23 21:55:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 491 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 81,672 KB
実行使用メモリ 77,880 KB
最終ジャッジ日時 2023-10-18 19:40:50
合計ジャッジ時間 3,153 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def tekitou_validation():
	h, w, k = map(int,input().split())
	assert 1 <= h <= 10 ** 9
	assert 1 <= w <= 10 ** 9
	assert 0 <= k <= min(h*w, 2 * 10 ** 3)
	s = set()
	for _ in range(k):
		xi,yi,d = input().split()
		assert xi.isdigit()
		assert yi.isdigit()
		assert d=="R" or d=="L" or d=="U" or d=="D"
		x = int(xi)
		y = int(yi)
		assert 0 <= x < h
		assert 0 <= y < w
		assert (x,y)not in s
		s.add((x,y))
	


T = int(input())
assert 1 <= T <= 100
for i in range(T):
	tekitou_validation()
0