結果
| 問題 |
No.2655 Increasing Strides
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-03-01 21:53:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 421 ms / 2,000 ms |
| コード長 | 210 bytes |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 45,192 KB |
| 最終ジャッジ日時 | 2024-09-29 13:51:08 |
| 合計ジャッジ時間 | 15,706 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
N=int(input())
OK=set()
for i in range(10**6):
if i>=7 and i%4==3:
OK.add(i)
if i>=6 and (i%8==6 or i%8==0):
OK.add(i)
if N in OK and N-1 in OK:
print("Yes")
else:
print("No")
titia