結果
問題 | No.350 d=vt |
ユーザー |
![]() |
提出日時 | 2016-03-11 22:32:15 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 375 ms |
コンパイル使用メモリ | 53,172 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-05 03:50:46 |
合計ジャッジ時間 | 795 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:14:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%d.%d %d", &v1, &v2, &t); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio> #include <cstring> #include <vector> #include <string> #include <stack> #include <queue> #include <algorithm> int main() { // step 1 int v1, v2, t; scanf("%d.%d %d", &v1, &v2, &t); // step 2 int res = v2 * t / 10000; // step 3 printf("%d\n", res); return 0; }