結果
| 問題 |
No.2655 Increasing Strides
|
| コンテスト | |
| ユーザー |
hitonanode
|
| 提出日時 | 2024-03-02 23:06:39 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 232 bytes |
| コンパイル時間 | 643 ms |
| コンパイル使用メモリ | 77,360 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-09-29 16:28:28 |
| 合計ジャッジ時間 | 1,676 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
#include <iostream>
int main() {
int N;
std::cin >> N;
int no = (N + 1) / 2, ne = N / 2;
if (no % 2 == 0 and no > 2 and (ne % 4 == 0 or ne % 4 == 3)) {
puts("Yes");
} else {
puts("No");
}
}
hitonanode