結果
| 問題 |
No.350 d=vt
|
| コンテスト | |
| ユーザー |
shisidor
|
| 提出日時 | 2023-04-10 20:56:22 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 397 bytes |
| コンパイル時間 | 586 ms |
| コンパイル使用メモリ | 63,232 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-06 07:35:45 |
| 合計ジャッジ時間 | 1,028 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 7 WA * 5 |
ソースコード
#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;
}
shisidor