結果
| 問題 |
No.1462 最弱WEAKER
|
| コンテスト | |
| ユーザー |
mmn15277198
|
| 提出日時 | 2021-04-03 21:25:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 2,622 bytes |
| コンパイル時間 | 1,306 ms |
| コンパイル使用メモリ | 97,340 KB |
| 実行使用メモリ | 6,656 KB |
| 最終ジャッジ日時 | 2024-12-25 16:16:31 |
| 合計ジャッジ時間 | 2,308 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 18 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <map>
#include <iomanip>
#include <stdio.h>
#include <math.h>
#include <queue>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define rep(i,n) for(int i = 0; i < (n); i++)
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define all(x) x.begin() , x.end()
#define vi vector<int>
#define vll vector<ll>
#define vb vector<bool>
const static int INF = 1001001001;
const static ll LINF = 1001001001001001001LL;
const static ld PI = 3.1415926535897932384626L;
const static int MOD = int(1e9) + int(7);
//const static ll MOD = ll(1e9) + ll(7);
//const static int MOD = 998244353;
//const static int MOD = 998244353;
const static int MX = 202020;
ll gcd (ll a , ll b) { if (a < b) swap(a , b); if (a % b == 0) return b; else return gcd (b , a % b); }
ll lcm (ll a , ll b) { return (a / gcd (a , b) * b); }
int keta (ll x) { int ret = 0; while(x) { ret++; x /= 10; } return ret; }
inline int in () { int x; scanf("%d" , &x); return x; }
inline ll lin () { ll x; scanf("%lld" , &x); return x; }
void io_setup () {
cout << fixed << setprecision(15);
//cin.tie(0);
//ios::sync_with_stdio(false);
}
bool is_prime (ll x) {
if (x == 2 || x == 3 || x == 5 || x == 7) {
return true;
}
for (ll i = 3; i * i <= x; i++) {
if (x % i == 0) {
return false;
}
}
return true;
}
vb prime_table(MX , true);
void prime () {
prime_table[0] = prime_table[1] = false;
for (int i = 2; i < MX; i++) {
for(int j = i + i; j < MX; j += i) {
prime_table[j] = false;
}
}
}
ll modpow (ll x , ll p) {
ll ret = 1;
while (p > 0) {
if (p & 1) ret = ret * x % MOD;
x = x * x % MOD;
p >>= 1;
}
return ret;
}
vector<ll> fact(MX , 0);
vector<ll> factinv(MX , 0);
void calc_fact () {
fact[0] = 1;
for (int i = 1; i < MX; i++) fact[i] = 1LL * i * fact[i - 1] % MOD;
for (int i = 0; i < MX; i++) factinv[i] = modpow(fact[i], MOD - 2);
}
ll nCk (ll n , ll k) {
return fact[n] * factinv[k] % MOD * factinv[n - k] % MOD;
}
ll modsub (ll a , ll b) {
if (a >= b) return (a - b) % MOD;
else return (MOD + a - b) % MOD;
}
/*
//memo
v.erase(unique(all(v)), v.end());
*/
void solve() {
int n = in();
if (n % 2 == 1) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return;
}
int main () {
io_setup();
//prime();
//calc_fact();
solve();
return 0;
}
mmn15277198