結果
| 問題 | No.316 もっと刺激的なFizzBuzzをください |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-02-05 01:15:13 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 373 bytes |
| 記録 | |
| コンパイル時間 | 766 ms |
| コンパイル使用メモリ | 146,696 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2026-10-12 14:16:11 |
| 合計ジャッジ時間 | 9,736 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | TLE * 1 -- * 32 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long n;
cin >> n;
long long a, b, c;
cin >> a >> b >> c;
int f = 0;
for (long long i = 1; i <= n; i++)
{
if (i % a == 0 || i % b == 0 || i % c == 0)
{
f++;
}
}
cout << f << endl;
}
vjudge1