結果

問題 No.3064 Speedrun (Easy)
ユーザー JOYURI
提出日時 2025-04-04 20:57:00
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 566 bytes
コンパイル時間 2,126 ms
コンパイル使用メモリ 195,500 KB
実行使用メモリ 7,328 KB
最終ジャッジ日時 2025-04-04 20:57:05
合計ジャッジ時間 3,239 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using VI = vector<int>;
using P = pair<int, int>;
constexpr int INF = 1001001001;
constexpr ll LINF = 1001001001001001001ll;
#define rep(i, n) for (ll i = 0; i < (int)(n); i++)

int main(){
    int time = 0;
    vector<int> a(4), p(4);
    int t;
    rep(i, 4) cin >> a[i];
    rep(i, 4) cin >> p[i];
    cin >> t;
    // vector<vector<int>> v(n, vector<int>(m));
    rep(i, 4){
        time += a[i] * p[i];
    }
    string ans = "No";
    if(time <= t) ans = "Yes";


    cout << ans << endl;

}

0