結果
| 問題 |
No.3064 Speedrun (Easy)
|
| コンテスト | |
| ユーザー |
pengin_2000
|
| 提出日時 | 2025-03-21 21:23:37 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 248 bytes |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 24,448 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-21 21:23:37 |
| 合計ジャッジ時間 | 680 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d %d %d %d", &a, &b, &c, &d);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d %d %d %d %d", &p, &q, &r, &s, &t);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main()
{
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
int p, q, r, s, t;
scanf("%d %d %d %d %d", &p, &q, &r, &s, &t);
if (a * p + b * q + c * r + d * s > t)
printf("No\n");
else
printf("Yes\n");
return 0;
}
pengin_2000