結果
| 問題 | 
                            No.379 五円硬貨
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kongarishisyamo
                         | 
                    
| 提出日時 | 2016-06-22 19:40:58 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 254 bytes | 
| コンパイル時間 | 662 ms | 
| コンパイル使用メモリ | 54,108 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-11 19:23:20 | 
| 合計ジャッジ時間 | 1,364 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 14 WA * 2 | 
ソースコード
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	long long N,G,V;
	cin>>N>>G>>V;
	long long tmp=(N/5)*G;
	long long ans1=tmp/V;
	cout<<ans1<<".";
	long long ans2=((double)(tmp%V)/(double)V)*10000000000000;
	cout<<ans2<<endl;
}
            
            
            
        
            
kongarishisyamo