結果

問題 No.492 IOI数列
ユーザー testestesttestestest
提出日時 2017-06-14 02:42:55
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 151 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 29,360 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 21:56:25
合計ジャッジ時間 1,291 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 1 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 1 ms
4,348 KB
testcase_11 AC 1 ms
4,348 KB
testcase_12 AC 1 ms
4,348 KB
testcase_13 AC 1 ms
4,348 KB
testcase_14 AC 1 ms
4,348 KB
testcase_15 AC 1 ms
4,348 KB
testcase_16 AC 1 ms
4,348 KB
testcase_17 AC 1 ms
4,348 KB
testcase_18 AC 1 ms
4,348 KB
testcase_19 AC 1 ms
4,348 KB
testcase_20 AC 1 ms
4,348 KB
testcase_21 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | P=1e9+7;long s,x,n;p(a,i){x=i?p(1L*a*a%P,i/2),i%2?x*a%P:x:1;}main(){for(scanf("%d",&n),p(100,n);n--%11;s=s*100+1);printf("%d\n%ld",646464651*~-x%P,s);}
      | ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'P' [-Wimplicit-int]
main.c:1:20: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | P=1e9+7;long s,x,n;p(a,i){x=i?p(1L*a*a%P,i/2),i%2?x*a%P:x:1;}main(){for(scanf("%d",&n),p(100,n);n--%11;s=s*100+1);printf("%d\n%ld",646464651*~-x%P,s);}
      |                    ^
main.c: In function 'p':
main.c:1:20: warning: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:20: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c: At top level:
main.c:1:62: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | P=1e9+7;long s,x,n;p(a,i){x=i?p(1L*a*a%P,i/2),i%2?x*a%P:x:1;}main(){for(scanf("%d",&n),p(100,n);n--%11;s=s*100+1);printf("%d\n%ld",646464651*~-x%P,s);}
      |                                                              ^~~~
main.c: In function 'main':
main.c:1:73: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | P=1e9+7;long s,x,n;p(a,i){x=i?p(1L*a*a%P,i/2),i%2?x*a%P:x:1;}main(){for(scanf("%d",&n),p(100,n);n--%11;s=s*100+1);printf("%d\n%ld",646464651*~-x%P,s);}
      |                                                                         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | P=1e9+7;long s,x,n;p(a,i){x=i?p(1L*a*a%P,i/2),i%2?x*a%P:x:1;}main(){for(scanf("%d",&n),p(100,n);n--%11;s=s*100+1);printf("%d\n%ld",646464651*~-x%P,s);}
main.c:1:73: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | P=1e9+7;long s,x,n;p(a,i){x=i?p(1L*a*a%P,i/2),i%2?x*a%P:x:1;}main(){for(scanf("%d",&n),p(100,n);n--%11;s=s*100+1);printf("%d\n%ld",646464651*~-x%P,s);}
      |                  

ソースコード

diff #

P=1e9+7;long s,x,n;p(a,i){x=i?p(1L*a*a%P,i/2),i%2?x*a%P:x:1;}main(){for(scanf("%d",&n),p(100,n);n--%11;s=s*100+1);printf("%d\n%ld",646464651*~-x%P,s);}
0