結果

問題 No.557 点対称
ユーザー testestesttestestest
提出日時 2017-08-12 07:58:52
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 133 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 28,764 KB
実行使用メモリ 5,240 KB
最終ジャッジ日時 2023-08-03 06:39:48
合計ジャッジ時間 1,406 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 WA -
testcase_02 AC 0 ms
4,376 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 0 ms
4,380 KB
testcase_06 AC 0 ms
4,376 KB
testcase_07 WA -
testcase_08 AC 0 ms
4,380 KB
testcase_09 AC 0 ms
4,380 KB
testcase_10 WA -
testcase_11 AC 1 ms
4,380 KB
testcase_12 AC 0 ms
4,380 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 AC 1 ms
4,380 KB
testcase_15 AC 1 ms
4,380 KB
testcase_16 WA -
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 1 ms
4,380 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 1 ms
4,380 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 1 ms
4,380 KB
testcase_26 AC 0 ms
4,380 KB
testcase_27 AC 1 ms
4,376 KB
testcase_28 AC 1 ms
4,376 KB
testcase_29 AC 0 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: 関数 ‘p’ 内:
main.c:1:21: 警告: ‘a’ の型をデフォルトの ‘int’ にします [-Wimplicit-int]
    1 | long n,m=1e9+7;long p(a,n){return n?p(1L*a*a%m,n/2)*(n%2?a:1)%m:1;}main(){scanf("%ld",&n);printf("%d",n/2?(n%2*8+4)*p(5,n/2-1)%m:2);}
      |                     ^
main.c:1:21: 警告: ‘n’ の型をデフォルトの ‘int’ にします [-Wimplicit-int]
main.c: トップレベル:
main.c:1:68: 警告: 戻り値の型をデフォルトの ‘int’ にします [-Wimplicit-int]
    1 | long n,m=1e9+7;long p(a,n){return n?p(1L*a*a%m,n/2)*(n%2?a:1)%m:1;}main(){scanf("%ld",&n);printf("%d",n/2?(n%2*8+4)*p(5,n/2-1)%m:2);}
      |                                                                    ^~~~
main.c: 関数 ‘main’ 内:
main.c:1:75: 警告: 関数 ‘scanf’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    1 | long n,m=1e9+7;long p(a,n){return n?p(1L*a*a%m,n/2)*(n%2?a:1)%m:1;}main(){scanf("%ld",&n);printf("%d",n/2?(n%2*8+4)*p(5,n/2-1)%m:2);}
      |                                                                           ^~~~~
main.c:1:1: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | long n,m=1e9+7;long p(a,n){return n?p(1L*a*a%m,n/2)*(n%2?a:1)%m:1;}main(){scanf("%ld",&n);printf("%d",n/2?(n%2*8+4)*p(5,n/2-1)%m:2);}
main.c:1:75: 警告: 組み込み関数 ‘scanf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch]
    1 | long n,m=1e9+7;long p(a,n){return n?p(1L*a*a%m,n/2)*(n%2?a:1)%m:1;}main(){scanf("%ld",&n);printf("%d",n/2?(n%2*8+4)*p(5,n/2-1)%m:2);}
      |                                                                           ^~~~~
main.c:1:75: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:91: 警告: 関数 ‘printf’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    1 | long n,m=1e9+7;long p(a,n){return n?p(1L*a*a%m,n/2)*(n%2?a:1)%m:1;}main(){scanf("%ld"

ソースコード

diff #

long n,m=1e9+7;long p(a,n){return n?p(1L*a*a%m,n/2)*(n%2?a:1)%m:1;}main(){scanf("%ld",&n);printf("%d",n/2?(n%2*8+4)*p(5,n/2-1)%m:2);}
0