結果

問題 No.311 z in FizzBuzzString
ユーザー Ryu
提出日時 2017-12-28 18:33:14
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 582 ms
コンパイル使用メモリ 65,656 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-24 22:01:53
合計ジャッジ時間 1,111 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>

using namespace std;
using ll = long long int;

int main()
{
    ll N;
    cin >> N;

    ll num_3 = N / 3;
    ll num_5 = N / 5;

    int ans = num_3 * 2 + num_5 * 2;

    cout << ans << endl;
         
    return 0;
}
0