結果
| 問題 |
No.1107 三善アクセント
|
| コンテスト | |
| ユーザー |
t_uto0603
|
| 提出日時 | 2020-07-12 20:01:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,768 bytes |
| コンパイル時間 | 1,134 ms |
| コンパイル使用メモリ | 84,592 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 20:20:29 |
| 合計ジャッジ時間 | 1,659 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<cmath>
#include<cstdio>
#include<queue>
#include<deque>
#include<map>
#include<stack>
#include<set>
#include<utility>
using namespace std;
typedef pair<int,int> ii;
typedef long long ll;
typedef pair<ll,ll> P;
typedef unsigned long long int ull;
const ll MOD=1e9+7;
int dy[]={1,0,-1,0};
int dx[]={0,1,0,-1};
const int MAXN=100000;
const int MAXE=100000;
const int MAXV=10000;
const ll INF=2e9;
struct UnionFindTree{
vector<int> par,rank;
UnionFindTree(int n):par(n),rank(n,0){
for(int i=0;i<n;i++) par[i]=i;
}
int root(int x){
if(par[x]==x) return x;
return par[x]=root(par[x]);
}
void unite(int x,int y){
int rx=root(x),ry=root(y);
if(rx==ry) return ;
if(rank[rx]<rank[ry]) par[rx]=ry;
else par[ry]=rx;
if(rank[rx]==rank[ry]) rank[rx]++;
}
bool same(int x,int y){
return root(x)==root(y);
}
};
ll power(ll a,ll x){
ll res=1;
while(x>0){
if(x&1) res*=a;
a*=a;
x>>=1;
}
return res;
}
int popcount(int x){
int res=0;
while(x>0){
if(x&1) res++;
x>>=1;
}
return res;
}
int f(int x){
if(x==0) return 1;
return f(x%popcount(x))+1;
}
vector<int> prime_factor(int n){
vector<int> res(n+1,0);
for(int i=2;i<=n;i++){
int m=i;
for(int j=2;j*j<=m;j++){
if(m%j==0){
while(m%j==0){
res[j]++;
m/=j;
}
}
}
if(m!=1) res[m]++;
}
return res;
}
int main(){
int a,b,c,d;cin>>a>>b>>c>>d;
if(a<b&&c>d) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
t_uto0603