結果

問題 No.350 d=vt
ユーザー kongarishisyamo
提出日時 2016-03-12 20:56:32
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 547 ms
コンパイル使用メモリ 54,908 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-05 04:28:47
合計ジャッジ時間 1,182 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>

using namespace std;

int main(){

	int v=0,t;
	string vs;

	cin>>vs>>t;

	int z=1;
	for(int i=vs.size()-1;i>=0;i--){
		if(i==1) continue;
		v+=(vs[i]-'0')*z;
		z*=10;
	}
	cout<<v*t/10000<<endl;
}
0