結果

問題 No.593 4進FizzBuzz
ユーザー kcz146kcz146
提出日時 2017-11-27 19:03:03
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 22,912 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2024-05-05 13:29:39
合計ジャッジ時間 2,379 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,400 KB
testcase_01 AC 3 ms
6,272 KB
testcase_02 AC 4 ms
6,144 KB
testcase_03 AC 3 ms
6,144 KB
testcase_04 AC 4 ms
6,144 KB
testcase_05 AC 4 ms
6,144 KB
testcase_06 AC 4 ms
6,272 KB
testcase_07 AC 4 ms
6,272 KB
testcase_08 AC 4 ms
6,144 KB
testcase_09 AC 4 ms
6,144 KB
testcase_10 AC 4 ms
6,400 KB
testcase_11 AC 4 ms
6,272 KB
testcase_12 AC 4 ms
6,272 KB
testcase_13 AC 4 ms
6,272 KB
testcase_14 AC 4 ms
6,400 KB
testcase_15 AC 4 ms
6,400 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 12 ms
6,144 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 12 ms
6,144 KB
testcase_22 AC 14 ms
6,272 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 12 ms
6,272 KB
testcase_26 AC 12 ms
6,400 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 13 ms
6,144 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 11 ms
6,400 KB
testcase_33 AC 12 ms
6,272 KB
testcase_34 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:6: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 | scanf("%s",s);
      | ~~~~~^~~~~~~~

ソースコード

diff #

#include<cstdio>

int main(void) {
char s[5000000];
scanf("%s",s);
int a=0;
char *p = s;
while(*p) a*=4, a+=*p++-'0';
printf("%s\n", a%15==0?"FizzBuzz":(a%3==0?"Fizz":a%5==0?"Buzz":s));
}
0