結果
| 問題 |
No.350 d=vt
|
| コンテスト | |
| ユーザー |
Haijinn
|
| 提出日時 | 2018-02-17 23:02:33 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 21,248 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 05:52:26 |
| 合計ジャッジ時間 | 853 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 8 WA * 4 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:11:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%lf%d",&v,&t);
| ^~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char s[]="abcdefghijklmnopqrstuvwxyz";
char s2[]="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main(void)
{
double v;
int t;
int z;
scanf("%lf%d",&v,&t);
z=(double)v*t;
printf("%d\n",z);
return 0;
}
Haijinn