結果
問題 | No.9002 FizzBuzz(テスト用) |
ユーザー |
![]() |
提出日時 | 2015-09-17 01:41:04 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 396 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 06:50:29 |
合計ジャッジ時間 | 552 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d%d", &x, &y); | ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>int main(){int x, y;scanf("%d%d", &x, &y);do {if (x % 15 == 0) {puts("FizzBuzz");} else if (x % 3 == 0) {puts("Fizz");} else if (x % 5 == 0) {puts("Buzz");} else {printf("%d\n", x);}x++;} while (x <= y);return 0;}