結果

問題 No.350 d=vt
ユーザー parukiparuki
提出日時 2016-03-19 17:49:23
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,202 bytes
コンパイル時間 793 ms
コンパイル使用メモリ 85,540 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-15 10:23:48
合計ジャッジ時間 1,440 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 1 ms
6,940 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 2 ms
6,944 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 2 ms
6,944 KB
testcase_08 AC 2 ms
6,944 KB
testcase_09 AC 2 ms
6,940 KB
testcase_10 AC 2 ms
6,944 KB
testcase_11 AC 2 ms
6,940 KB
testcase_12 AC 2 ms
6,944 KB
testcase_13 AC 2 ms
6,940 KB
testcase_14 AC 2 ms
6,944 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:51:7: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   51 |     s_("0.%d %d", &v, &t);
      |       ^

ソースコード

diff #

#include <cstring>
#include <cmath>
#include <cstdio>
#include <cassert>
#include <climits>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <deque>
#include <utility>
#include <algorithm>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <bitset>
#include <functional>
#include <numeric>
#include <iomanip>
#include <iterator>
#include <array>
using namespace std;
#define rt return
#define FOR(i,j,k) for(int i=j; i<(int)k;++i)
#define rep(i,j) for(int i=0;i<(int)j;++i)
#define rep1(i,j) for(int i=1;i<=(int)j;++i)
#define each(x,y) for(auto &(x):(y))
#define mp make_pair
#define mt make_tuple
#define pb_ push_back
#define eb_ emplace_back
#define fi_ first
#define se_ second
#define all(x) (x).begin(),(x).end()
#define debug(x) cout<<#x<<": "<<(x)<<endl
#define smax(x,y) (x)=max((x),(y))
#define smin(x,y) (x)=min((x),(y))
#define MEM(x,y) memset((x),(y),sizeof (x))
#define sz(x) (int)(x).size()
#define p_ printf
#define s_ scanf
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;

int v, t;
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    s_("0.%d %d", &v, &t);
    cout << v*t / 10000 << endl;
}
0