結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
|
| 提出日時 | 2022-12-12 18:19:08 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 456 bytes |
| コンパイル時間 | 2,087 ms |
| コンパイル使用メモリ | 101,120 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-06 16:50:33 |
| 合計ジャッジ時間 | 770 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 4 |
コンパイルメッセージ
main.cpp:18:29: warning: format specifies type 'int' but the argument has type 'int *' [-Wformat]
18 | printf("%d",&i);
| ~~ ^~
1 warning generated.
ソースコード
#include<stdio.h>
int main(){
int n;
int i;
scanf("%d",&n);
for (i = 1;i <= n; i++){
if (i%3 == 0){
if(i%5 == 0){
printf("FizzBuzz");
}else{printf("Fizz");
}
}else{
if(i%5 == 0){
printf("Buzz");
}else{
printf("%d",&i);
}
}
printf("\n");
}
return 0;
}