結果
| 問題 |
No.311 z in FizzBuzzString
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-27 15:33:34 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 295 bytes |
| コンパイル時間 | 469 ms |
| コンパイル使用メモリ | 24,960 KB |
| 実行使用メモリ | 14,772 KB |
| 最終ジャッジ日時 | 2025-03-27 15:33:38 |
| 合計ジャッジ時間 | 3,961 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 TLE * 1 -- * 3 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%lld",&n);
| ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
void main(void){
long long int n = 0 ;
scanf("%lld",&n);
long long int zCount = 0;
for(int i = 1 ; i <= n ; i++){
if(i%3 == 0){
zCount += 2;
}
if(i%5 == 0){
zCount += 2;
}
}
printf("%lld",zCount);
}
Maeda