結果
問題 |
No.637 X: Yet Another FizzBuzz Problem
|
ユーザー |
![]() |
提出日時 | 2020-04-05 16:37:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 1,420 ms |
コンパイル使用メモリ | 168,992 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-03 08:14:01 |
合計ジャッジ時間 | 2,314 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | WA * 30 |
ソースコード
#include <bits/stdc++.h> using namespace std; signed main(){ int ans=0; vector<int> v(5); for(int i=0;i<5;i++)cin>>v[i]; for(int p:v){ if(p%3==0)ans+=4; if(p%5==0)ans+=4; if(p%3&&p%5)ans++; } cout<<ans<<endl; }