LoginSignup
0
0

More than 3 years have passed since last update.

AtCoder 生活107日目

Posted at

前回

107日目

今日は、灰色を1問解いた後にABC191に参加しました。

問題 難易度 自力で解けた かかった時間
ABC065 A 9分11秒

Screen Shot 0003-02-06 at 23.33.42.png

ABC191

A


#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i < (n);i++)
using namespace std;
using ll = long long;
using pii = pair<int,int>;

const int INF = 2e9;

int main(){
    int v,t,s,d;
    cin >> v >> t >> s >> d;
    if(s*v >= d && t*v <= d)cout << "No" << endl;
    else cout << "Yes" << endl;
}

B


#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i < (n);i++)
using namespace std;
using ll = long long;
using pii = pair<int,int>;

const int INF = 2e9;

int main(){
    int n,x;
    cin >> n >> x;
    rep(i,n){
        int a;
        cin >> a;
        if(a == x)continue;
        cout << a << " ";
    }
}

ABC065_A


#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i < (n);i++)
using namespace std;
using ll = long long;
using pii = pair<int,int>;

const int INF = 2e9;

int main(){
    ll x,a,b;
    cin >> x >> a >> b;
    ll r = b - a;
    if(r <= 0){
        cout << "delicious" << endl;
        return 0;
    }
    if(r <= x) cout << "safe" << endl;
    else cout << "dangerous" << endl;
}

解くのにかかった時間:9分11秒

最後に

今回のABCのC問題はかなり難しく感じた。またA問題も今までより少し難しくなってきている気がする。
ただ、今回はパフォーマンスを600まで戻せたのでこっからは伸びるだけだと思う。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0