結果

問題 No.3064 Speedrun (Easy)
ユーザー ruase_
提出日時 2025-08-15 10:44:43
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 425 bytes
コンパイル時間 907 ms
コンパイル使用メモリ 100,552 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-08-15 10:44:45
合計ジャッジ時間 2,034 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

# include <iostream>
# include <iomanip>
# include <algorithm>

using namespace std;


int main()
{
    int qn[4];
    int qm[4];
    int limit = 0;

    for (int i = 0; i < 4; i++) cin >> qn[i];
    for (int i = 0; i < 4; i++) cin >> qm[i];
    cin >> limit;

    int ans = 0;
    for (int a = 0; a < 4; a++) {
        ans += qn[a] * qm[a];
    }

    if (ans <= limit) cout << "Yes" << endl;else cout << "No" << endl;

}


0