結果

問題 No.420 mod2漸化式
ユーザー 👑 testestesttestestest
提出日時 2016-10-04 15:44:09
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 92 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 19,712 KB
実行使用メモリ 13,768 KB
最終ジャッジ日時 2024-11-21 15:39:02
合計ジャッジ時間 3,078 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
8,100 KB
testcase_01 WA -
testcase_02 AC 1 ms
6,816 KB
testcase_03 AC 1 ms
6,816 KB
testcase_04 AC 1 ms
6,820 KB
testcase_05 AC 1 ms
6,820 KB
testcase_06 AC 0 ms
6,816 KB
testcase_07 AC 1 ms
6,820 KB
testcase_08 AC 0 ms
6,816 KB
testcase_09 AC 1 ms
6,816 KB
testcase_10 AC 1 ms
6,820 KB
testcase_11 AC 0 ms
6,820 KB
testcase_12 AC 0 ms
6,816 KB
testcase_13 AC 0 ms
6,816 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 1 ms
6,820 KB
testcase_34 AC 2 ms
6,816 KB
testcase_35 TLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | i,x;main(n){for(scanf("%d",&x);i++<x;n/=i)n*=32-i;i=!printf("%d %ld",n,n*0x7FFFFFFFL*x/31);}
      | ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
    1 | i,x;main(n){for(scanf("%d",&x);i++<x;n/=i)n*=32-i;i=!printf("%d %ld",n,n*0x7FFFFFFFL*x/31);}
      |   ^
main.c:1:5: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | i,x;main(n){for(scanf("%d",&x);i++<x;n/=i)n*=32-i;i=!printf("%d %ld",n,n*0x7FFFFFFFL*x/31);}
      |     ^~~~
main.c: In function ‘main’:
main.c:1:5: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:17: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    1 | i,x;main(n){for(scanf("%d",&x);i++<x;n/=i)n*=32-i;i=!printf("%d %ld",n,n*0x7FFFFFFFL*x/31);}
      |                 ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | i,x;main(n){for(scanf("%d",&x);i++<x;n/=i)n*=32-i;i=!printf("%d %ld",n,n*0x7FFFFFFFL*x/31);}
main.c:1:17: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    1 | i,x;main(n){for(scanf("%d",&x);i++<x;n/=i)n*=32-i;i=!printf("%d %ld",n,n*0x7FFFFFFFL*x/31);}
      |                 ^~~~~
main.c:1:17: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:54: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
    1 | i,x;main(n){for(scanf("%d",&x);i++<x;n/=i)n*=32-i;i=!printf("%d %ld",n,n*0x7FFFFFFFL*x/31);}
      |                                                      ^~~~~~
main.c:1:54: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:1:54: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuil

ソースコード

diff #

i,x;main(n){for(scanf("%d",&x);i++<x;n/=i)n*=32-i;i=!printf("%d %ld",n,n*0x7FFFFFFFL*x/31);}
0