結果

問題 No.311 z in FizzBuzzString
ユーザー kawadumax
提出日時 2016-02-09 22:25:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 384 bytes
コンパイル時間 721 ms
コンパイル使用メモリ 60,580 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-24 21:33:49
合計ジャッジ時間 1,231 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include "math.h"
using namespace std;
int main() {
    // insert code here...
    float n;
    float threeNum,fiveNum;
//    float fifteenNum;
    cin >> n;
    
//    fifteenNum = floor(n/15);
    threeNum = floor(n/3);
    fiveNum = floor(n/5);
    
    float ans = 2 * (threeNum + fiveNum);
    cout.precision(18);
    cout << ans <<endl;
    

    return 0;
}
0