結果

問題 No.350 d=vt
ユーザー suminoeno7suminoeno7
提出日時 2023-04-10 20:56:22
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 397 bytes
コンパイル時間 538 ms
コンパイル使用メモリ 64,600 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-16 00:06:10
合計ジャッジ時間 1,161 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<iostream>
using namespace std;

int main() {
    double v;
    int t;
    cin >> v >> t;
    int a = t / 10000;
    int b = (t % 10000) / 1000;
    int c = (t % 1000) / 100;
    int d = (t % 100) / 10;
    int e = t % 10;
    double res = 0;
    res += e * v;
    res += v * 10 * d;
    res += v * 100 * c;
    res += v * 1000 * b;
    res += v * 10000 * a;
    cout << res / 1 << endl;
}
0