結果
| 問題 |
No.2655 Increasing Strides
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-01 22:11:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 324 bytes |
| コンパイル時間 | 335 ms |
| コンパイル使用メモリ | 82,596 KB |
| 実行使用メモリ | 53,896 KB |
| 最終ジャッジ日時 | 2024-09-29 14:08:57 |
| 合計ジャッジ時間 | 2,493 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
import sys
input = sys.stdin.readline
N = int(input())
x = N//2
xsum = (2*x+2)*x//2
if xsum%2!=0:
print("No")
exit()
xtarget = xsum//2
if xtarget%2!=0:
print("No")
exit()
y = N-x
ysum = 2*y*y//2
if ysum%2!=0:
print("No")
exit()
ytarget = ysum//2
if ytarget==2:
print("No")
exit()
print("Yes")