結果
| 問題 |
No.2655 Increasing Strides
|
| コンテスト | |
| ユーザー |
amano_hina
|
| 提出日時 | 2024-03-01 21:26:10 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 840 bytes |
| コンパイル時間 | 1,311 ms |
| コンパイル使用メモリ | 166,168 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-09-29 13:28:19 |
| 合計ジャッジ時間 | 2,153 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
#include<bits/stdc++.h>
//#include<cstdio>
using namespace std;
//#pragma GCC optimize("Ofast")
//#pragma GCC optimize ("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
//mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
#define int long long
typedef long long ll;
#define F first
#define S second
#define pb emplace_back
signed main()
{
cin.tie(0);
ios_base::sync_with_stdio(0);
int n;
cin>>n;
bool g=1;
if(n%2)
{
if(n>=7&&n%4==3)
{
}
else g=0;
}
else
{
n--;
if(n>=7&&n%4==3)
{
}
else g=0;
n++;
}
if(n%2) n--;
n/=2;
if(n&&(n%4==0||n%4==3))
{
}
else g=0;
if(g) cout<<"Yes"<<'\n';
else cout<<"No"<<'\n';
}
amano_hina