結果

問題 No.240 ナイト散歩
ユーザー matriematrie
提出日時 2020-12-29 08:03:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 539 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 44,564 KB
最終ジャッジ日時 2024-04-15 07:16:30
合計ジャッジ時間 20,521 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 520 ms
44,320 KB
testcase_01 AC 528 ms
44,320 KB
testcase_02 AC 522 ms
43,928 KB
testcase_03 AC 529 ms
44,564 KB
testcase_04 AC 525 ms
43,928 KB
testcase_05 AC 521 ms
44,312 KB
testcase_06 AC 525 ms
43,932 KB
testcase_07 AC 530 ms
44,440 KB
testcase_08 AC 525 ms
44,256 KB
testcase_09 AC 539 ms
44,316 KB
testcase_10 AC 521 ms
43,932 KB
testcase_11 AC 519 ms
44,104 KB
testcase_12 AC 520 ms
44,316 KB
testcase_13 AC 523 ms
43,936 KB
testcase_14 AC 517 ms
44,344 KB
testcase_15 AC 519 ms
44,440 KB
testcase_16 AC 521 ms
44,312 KB
testcase_17 AC 527 ms
44,444 KB
testcase_18 AC 520 ms
44,184 KB
testcase_19 AC 523 ms
43,928 KB
testcase_20 AC 519 ms
43,936 KB
testcase_21 AC 519 ms
43,924 KB
testcase_22 AC 516 ms
43,932 KB
testcase_23 AC 513 ms
44,180 KB
testcase_24 AC 522 ms
43,932 KB
testcase_25 AC 521 ms
43,932 KB
testcase_26 AC 515 ms
44,056 KB
testcase_27 AC 514 ms
44,184 KB
testcase_28 AC 519 ms
44,480 KB
testcase_29 AC 519 ms
43,928 KB
testcase_30 AC 520 ms
44,448 KB
testcase_31 AC 518 ms
43,932 KB
testcase_32 AC 526 ms
44,300 KB
testcase_33 AC 525 ms
44,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as it
import numpy as np
x=list(map(int,input().split()))
k=[[-2,-1],[-2,1],[-1,-2],[-1,2],[1,-2],[1,2],[2,-1],[2,1],[0,0]]
l=[list(sum(np.array(c))) for c in it.combinations_with_replacement(k,3)]
print("YES" if x in l else "NO")
0