結果
| 問題 | No.9002 FizzBuzz(テスト用) |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-05 01:10:46 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 171 bytes |
| 記録 | |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 20,608 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 01:21:39 |
| 合計ジャッジ時間 | 448 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void){
int n,x=0;
scanf("%d",&n);
while(n>=++x)x%3?x%5?printf("%d\n",x):printf("Buzz\n"):x%5?printf("Fizz\n"):printf("FizzBuzz\n");
return 0;
}
testestest