結果
| 問題 | No.316 もっと刺激的なFizzBuzzをください |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-02-05 01:15:13 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 373 bytes |
| 記録 | |
| コンパイル時間 | 1,245 ms |
| コンパイル使用メモリ | 145,772 KB |
| 実行使用メモリ | 16,512 KB |
| 最終ジャッジ日時 | 2026-06-27 09:07:38 |
| 合計ジャッジ時間 | 5,784 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_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