結果

問題 No.350 d=vt
ユーザー Maeda
提出日時 2025-03-28 11:33:04
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 119 bytes
コンパイル時間 415 ms
コンパイル使用メモリ 24,320 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-28 11:33:05
合計ジャッジ時間 1,018 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: useless type name in empty declaration
    5 |         double ;
      |         ^~~~~~
main.c:8:16: warning: ‘return’ with a value, in function returning void
    8 |         return 0;
      |                ^
main.c:3:6: note: declared here
    3 | void main(void){
      |      ^~~~
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("0.%d %d",&v,&t);
      |         ^~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

void main(void){
	int v,t;
	double ;
	scanf("0.%d %d",&v,&t);
	printf("%d",v*t/10000);
	return 0;
}
0