結果
| 問題 | No.637 X: Yet Another FizzBuzz Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-01 16:16:19 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 1,137 ms |
| コンパイル使用メモリ | 148,716 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-09 09:41:45 |
| 合計ジャッジ時間 | 2,372 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
int a,ans=0;
while(cin>>a){
int tmp=0;
if(a%3==0)
tmp+=4;
if(a%5==0)
tmp+=4;
if(tmp==0)
tmp=to_string(a).size();
ans+=tmp;
}
cout<<ans<<endl;
}