結果
問題 |
No.3064 Speedrun (Easy)
|
ユーザー |
![]() |
提出日時 | 2025-03-22 18:11:00 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 375 bytes |
コンパイル時間 | 328 ms |
コンパイル使用メモリ | 39,296 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-22 18:11:02 |
合計ジャッジ時間 | 987 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:15:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%d%d%d%d%d%d%d%d%d", &a, &b, &c, &d, &p, &q, &r, &s, &t); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
/* -*- coding: utf-8 -*- * * 3064.cc: No.3064 Speedrun (Easy) - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* main */ int main() { int a, b, c, d, p, q, r, s, t; scanf("%d%d%d%d%d%d%d%d%d", &a, &b, &c, &d, &p, &q, &r, &s, &t); int sum = a * p + b * q + c * r + d * s; if (sum <= t) puts("Yes"); else puts("No"); return 0; }