結果

問題 No.492 IOI数列
ユーザー testestesttestestest
提出日時 2017-06-14 02:47:41
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 159 bytes
コンパイル時間 492 ms
コンパイル使用メモリ 29,152 KB
実行使用メモリ 4,368 KB
最終ジャッジ日時 2023-10-24 21:56:44
合計ジャッジ時間 1,439 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

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