結果
| 問題 | No.311 z in FizzBuzzString |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-11 05:02:42 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 263 bytes |
| コンパイル時間 | 614 ms |
| コンパイル使用メモリ | 67,528 KB |
| 最終ジャッジ日時 | 2025-01-06 22:03:17 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 7 TLE * 4 |
ソースコード
#include <iostream>
using namespace std;
using LL = long long;
int main() {
LL N;
cin >> N;
LL ans = 0L;
for (LL i = 0L; i < N; ++i) {
if (i % 3 == 0) {
ans += 2;
}
if(i % 5 == 0) {
ans += 2;
}
}
cout << ans << endl;
}