結果

問題 No.3064 Speedrun (Easy)
ユーザー hiromi_ayase
提出日時 2025-03-21 21:35:59
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 590 bytes
コンパイル時間 5,534 ms
コンパイル使用メモリ 332,108 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-21 21:36:06
合計ジャッジ時間 5,609 ms
ジャッジサーバーID
(参考情報)
judge7 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#include <atcoder/all>
using namespace std;
using i32 = int;
using u32 = unsigned int;
using i64 = long long;
using u64 = unsigned long long;
#define FAST_IO                \
  ios::sync_with_stdio(false); \
  cin.tie(0);
const i64 INF = 1001001001001001001;
using Modint = atcoder::static_modint<998244353>;

int main() {
  FAST_IO
  auto ans = 0LL;

  int A,B,C,D;
  cin >> A >> B >> C >> D;
  int P,Q,R,S,T;
  cin >> P >> Q >> R >> S >> T;

  auto x = A*P + B*Q + C*R + D*S;
  if (x <= T) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
0