結果
| 問題 | No.1242 高橋君とすごろく |
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2026-08-13 00:57:48 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 438,152 KB |
| 最終ジャッジ日時 | 2026-08-13 00:58:05 |
| 合計ジャッジ時間 | 5,311 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 TLE * 1 -- * 17 |
ソースコード
import heapq
N,K = list(map(int,input().split()))
A = set(map(int,input().split()))
q = list([-i for i in A])
heapq.heapify(q)
while(q):
now = heapq.heappop(q);now *= -1
for x in range(1,7):
if(now + 7 - 2*x in A and now - x > 0):
A.add(now - x)
heapq.heappush(q, -(now - x))
print("Yes" if 1 not in A else "No")
回転