結果
| 問題 |
No.8041 なんとかのはなうらない
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-04 14:04:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 290 bytes |
| コンパイル時間 | 285 ms |
| コンパイル使用メモリ | 82,320 KB |
| 実行使用メモリ | 67,220 KB |
| 最終ジャッジ日時 | 2024-11-28 23:04:49 |
| 合計ジャッジ時間 | 2,004 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 13 |
ソースコード
from functools import lru_cache
sys.setrecursionlimit(2000)
n
@lru_cache(maxsize=2000)
def dfs(k):
if k<0:return False
if k==0:return True if n&1 else False
return not(dfs(k-1) and dfs(k-2) and dfs(k-3))
def main():
n=int(input())
print('Yes' if not dfs(k) else 'No')