結果
問題 |
No.311 z in FizzBuzzString
|
ユーザー |
![]() |
提出日時 | 2019-11-06 04:58:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,500 ms |
コード長 | 1,190 bytes |
コンパイル時間 | 1,412 ms |
コンパイル使用メモリ | 166,808 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-24 22:25:32 |
合計ジャッジ時間 | 1,923 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include "bits/stdc++.h" using namespace std; using ll = long long; #define int ll #define double long double void YN(bool flg){cout<<(flg?"YES":"NO")<<endl;} void Yn(bool flg){cout<<(flg?"Yes":"No")<<endl;} void yn(bool flg){cout<<(flg?"yes":"no")<<endl;} #define SORT(a) sort(a.begin(),a.end()) #define REVERSE(a) reverse(a.begin(),a.end()) #define REP(i, n) for(int i = 0;i < n;i++) #define FOR(i, m, n) for(int i = m;i < n;i++) #define db(n) cout << "### " << n << " ###" << endl; typedef vector<int> VI; typedef vector<VI> VVI; const long long MOD=1000000007; const long long INF = 10e10; const double PI = acos(-1.0); template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } int GCD(int a, int b) { return b ? GCD(b, a%b) : a; } int LCM(int a, int b) { int g = GCD(a, b); return a / g * b; } //--------------------------------------------------------------------------------------------- signed main(){ cin.tie(0); ios::sync_with_stdio(0); cout<<fixed<<setprecision(15); int n; cin >> n; cout << (n/3+n/5)*2 << endl; return 0; }