結果
| 問題 | No.311 z in FizzBuzzString |
| コンテスト | |
| ユーザー |
aaa
|
| 提出日時 | 2018-11-05 18:41:22 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,500 ms |
| + 473µs | |
| コード長 | 579 bytes |
| 記録 | |
| コンパイル時間 | 519 ms |
| コンパイル使用メモリ | 105,552 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-03 13:20:46 |
| 合計ジャッジ時間 | 1,785 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <functional>
#include <map>
#include <iomanip>
#include <math.h>
#include <stack>
#include <queue>
#include <bitset>
#include <cstdlib>
#include <tuple>
#include <cctype>
#include <ctype.h>
#include <set>
#include <sstream>
using namespace std;
int main(){
int i, j;
long long n;
cin >> n;
long fb = n / 15;
long f = n / 3;
long b = n / 5;
long sum = fb * 4 + (f-fb) * 2 + (b-fb) * 2;
cout << sum << endl;
getchar();
getchar();
return 0;
}
aaa