結果
| 問題 | No.637 X: Yet Another FizzBuzz Problem | 
| コンテスト | |
| ユーザー |  focus | 
| 提出日時 | 2018-01-29 21:37:02 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 361 bytes | 
| コンパイル時間 | 811 ms | 
| コンパイル使用メモリ | 62,672 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-29 18:15:31 | 
| 合計ジャッジ時間 | 1,651 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 1 | 
| other | WA * 30 | 
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
    int N,sum=0;
    for(int i=0;i<5;i++){
        cin >> N;
        if(N%3==0&&N%5==0)  sum+=8;
        else if(N%3==0&&N%5!=0) sum+=4;
        else if(N%3!=0&&N%5==0) sum+=4;
        else    sum++;
    }
    cout << sum;
    return 0;
}
            
            
            
        