結果
| 問題 | No.637 X: Yet Another FizzBuzz Problem | 
| コンテスト | |
| ユーザー |  a | 
| 提出日時 | 2020-04-09 20:02:25 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 670 bytes | 
| コンパイル時間 | 1,638 ms | 
| コンパイル使用メモリ | 169,028 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-09-13 20:18:18 | 
| 合計ジャッジ時間 | 2,713 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 30 | 
ソースコード
/**
 *  author:   TakeruOkuyama
 *  created:  2020-04-09 14:53:46
**/
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int MOD = 1000000007;
int main(){
    vector<int> a(5);
    int ans = 0;
    rep(i, 5){
        cin >> a[i];
        if(a[i] % 3 == 0 && a[i] % 5 == 0){
            ans += 8;
        }else if(a[i] % 3 == 0){
            ans +=4;
        }else if(a[i] % 5 == 0){
            ans +=4;
        }else{
            ans += (to_string(a[i])).size();
        }
    }
    cout << ans << endl;
return 0;}
/**
 * g++ code.cpp
 * ./a.out
 * shift + ctrl + i
**/ 
            
            
            
        