結果

問題 No.311 z in FizzBuzzString
ユーザー kuisiba
提出日時 2016-04-15 13:30:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,500 ms
コード長 250 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 57,240 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-24 21:38:40
合計ジャッジ時間 917 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main() {

    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    long long n;
    cin >> n;
    cout << (n / 3) * 2 + (n / 5) * 2 << endl;
    return 0;
}
0