結果
| 問題 | No.311 z in FizzBuzzString |
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-26 17:03:55 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 445 bytes |
| 記録 | |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 31,104 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 22:24:47 |
| 合計ジャッジ時間 | 7,966 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 1 TLE * 3 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
long long int num;
int zcnt=0;
scanf("%lld",&num);
for(int i=1;i<=num;i++)
{
if(i%3==0)
{
zcnt+=2;
if(i%5==0)
{
zcnt+=2;
}
}
else if (i%5==0)
{
zcnt+=2;
}
}
printf("%d",zcnt);
}
funakoshi