結果

問題 No.311 z in FizzBuzzString
ユーザー prog470
提出日時 2016-09-26 00:47:22
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,500 ms
コード長 376 bytes
コンパイル時間 676 ms
コンパイル使用メモリ 77,816 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-24 21:48:48
合計ジャッジ時間 1,171 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <string>
#include <stdio.h>

using namespace std;

int main() {

	long long N, cnt = 0;
	cin >> N;

	cnt = N / 5 + N / 3 - (N / 15) * 2;

	cout << cnt * 2 + (N / 15) * 4<< endl;

	return 0;
}
0