結果
問題 |
No.9002 FizzBuzz(テスト用)
|
ユーザー |
![]() |
提出日時 | 2016-03-14 21:56:58 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 220 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-10-01 05:20:30 |
合計ジャッジ時間 | 495 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 3 |
コンパイルメッセージ
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; scanf("%d",&n); int i; for(i=1;i<=n;i++){ if(n%15==0)printf("FizzBuzz\n"); else if(n%5==0)printf("Buzz\n"); else if(n%3==0)printf("Fizz\n"); else printf("%d\n",n); } return 0; }