結果
問題 | No.311 z in FizzBuzzString |
ユーザー |
![]() |
提出日時 | 2015-12-07 13:36:21 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,500 ms |
コード長 | 322 bytes |
コンパイル時間 | 505 ms |
コンパイル使用メモリ | 69,820 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 21:24:53 |
合計ジャッジ時間 | 999 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <vector>#include <iostream>#include <string>#include <sstream>#include <algorithm>#include <utility>#include <map>#include <cmath>using namespace std;typedef long long ll;typedef pair<ll,ll> P;int main(){ll n;cin >> n;ll ans = 0;ans += n / 3;ans += n / 5;ans *= 2;cout << ans << endl;}