結果
| 問題 | No.240 ナイト散歩 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-29 08:03:46 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 516 ms / 2,000 ms |
| コード長 | 247 bytes |
| 記録 | |
| コンパイル時間 | 360 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 34,872 KB |
| 最終ジャッジ日時 | 2026-04-20 14:58:49 |
| 合計ジャッジ時間 | 20,136 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 30 |
ソースコード
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")