結果
| 問題 |
No.1256 連続整数列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-16 21:28:56 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 802 bytes |
| コンパイル時間 | 1,738 ms |
| コンパイル使用メモリ | 169,888 KB |
| 実行使用メモリ | 32,000 KB |
| 最終ジャッジ日時 | 2024-07-21 01:19:16 |
| 合計ジャッジ時間 | 3,400 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 14 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
typedef pair<int,int>pii;
typedef long long ll;
typedef pair<ll,ll> pll;
typedef __int128 lll;
typedef vector<int> vi;
typedef vector<ll> vl;
mt19937 rng(chrono::system_clock::now().time_since_epoch().count());
const int mn=3e5+10;
const ll inf=0x3f3f3f3f3f3f3f3f;
const ll mod=1e9+7;
const ll half=(mod+1)/2;
const double PI=acos(-1);
int ct=0;
int col[mn];
int p[mn],nd[mn];
vector<int>rel[mn];
vector<int>g[mn],rg[mn],rnd[mn];
vector<int>v;
vector<vector<int> >ans[2];
vector<int>rd[2];
int main(){
#ifdef LOCAL
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
freopen("error.txt","w",stderr);
#endif
cin.tie(0);
cin.sync_with_stdio(0);
ll n;
cin>>n;
if(n%3==0)printf("YES");
else printf("NO");
}