結果
問題 |
No.9002 FizzBuzz(テスト用)
|
ユーザー |
![]() |
提出日時 | 2015-10-26 21:50:50 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 715 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-23 18:12:08 |
合計ジャッジ時間 | 891 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 4 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&a); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ int a,i; scanf("%d",&a); for(i=0;i<=a;i++){ if(i%3 == 0 && i%5 == 0) printf("FizzBuzz\n"); else if(i%5 == 0) printf("Buzz\n"); else if(i%3 == 0) printf("Fizz\n"); else printf("%d\n",i); } return 0; }