結果
| 問題 |
No.311 z in FizzBuzzString
|
| コンテスト | |
| ユーザー |
nninjinn00
|
| 提出日時 | 2017-02-19 21:46:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 199 bytes |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 55,416 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-24 21:54:15 |
| 合計ジャッジ時間 | 7,350 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 7 TLE * 4 |
ソースコード
#include <iostream>
using namespace std;
int main() {
int n,cnt=0;
cin >> n;
for(int i=1;i<=n;i++){
if(n%15==0)
cnt += 4;
else if(n%3==0 || n%5==0)
cnt += 2;
}
cout << cnt << endl;
}
nninjinn00