結果
| 問題 | No.316 もっと刺激的なFizzBuzzをください |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-02-05 01:29:38 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 1,147 ms |
| コンパイル使用メモリ | 163,216 KB |
| 実行使用メモリ | 16,640 KB |
| 最終ジャッジ日時 | 2026-06-27 09:08:57 |
| 合計ジャッジ時間 | 5,822 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | TLE * 1 -- * 32 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int main(){
int n, a, b, c, x=0;
cin >> n >> a >> b >> c;
for(int i=1;i<=n;i++){
if(i%a==0){
x++;
continue;
}
else if(i%b==0){
x++;
continue;
}
else if(i%c==0){
x++;
continue;
}
}
cout << x;
}
vjudge1