結果
| 問題 |
No.350 d=vt
|
| コンテスト | |
| ユーザー |
Haijinn
|
| 提出日時 | 2018-02-17 23:03:32 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 252 bytes |
| コンパイル時間 | 201 ms |
| コンパイル使用メモリ | 21,504 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-05 05:52:31 |
| 合計ジャッジ時間 | 740 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 9 WA * 3 |
コンパイルメッセージ
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+0.5;
printf("%d\n",z);
return 0;
}
Haijinn