結果
| 問題 | No.311 z in FizzBuzzString |
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-02-19 00:37:26 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 255 bytes |
| 記録 | |
| コンパイル時間 | 346 ms |
| コンパイル使用メモリ | 85,312 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-12 01:46:59 |
| 合計ジャッジ時間 | 9,699 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 TLE * 4 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
int N,count=0;
cin >> N;
for(int i=1;i<=N;i++){
if(i%3==0&&i%5==0) count+=4;
else if(i%3==0||i%5==0) count+=2;
}
cout << count;
}
focus