結果
問題 | No.2655 Increasing Strides |
ユーザー |
![]() |
提出日時 | 2024-04-25 16:47:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 471 bytes |
コンパイル時間 | 528 ms |
コンパイル使用メモリ | 40,704 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 03:55:30 |
合計ジャッジ時間 | 1,621 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 29 WA * 5 |
ソースコード
/* -*- coding: utf-8 -*-** 2655.cc: No.2655 Increasing Strides - yukicoder*/#include<cstdio>#include<algorithm>using namespace std;/* constant *//* typedef */typedef long long ll;/* global variables *//* subroutines */bool check(int n) {return ! (((ll)n * (n + 1) / 2) & 1);}/* main */int main() {int n;scanf("%d", &n);int x = (n + 1) / 2, y = n / 2;if (check(x) && check(y)) puts("Yes");else puts("No");return 0;}