結果

問題 No.350 d=vt
ユーザー TaK7907TaK7907
提出日時 2017-12-30 01:02:55
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 561 ms
コンパイル使用メモリ 69,088 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-15 10:55:52
合計ジャッジ時間 1,161 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 1 ms
6,944 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,944 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 WA -
testcase_06 AC 2 ms
6,940 KB
testcase_07 AC 2 ms
6,940 KB
testcase_08 AC 2 ms
6,940 KB
testcase_09 AC 2 ms
6,940 KB
testcase_10 AC 2 ms
6,940 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main() {
	double v, t;
	std::cin >> v >> t;
	const auto magTemp = 10000ul;
	auto v1 = static_cast< unsigned long >( magTemp * v );
	auto t1 = static_cast< unsigned long >( magTemp * t );
	std::cout << ( v1 * t1 ) / (magTemp*magTemp) << std::endl;
	return 0;
}
0