結果

問題 No.491 10^9+1と回文
ユーザー 👑 testestest
提出日時 2017-03-13 00:32:25
言語 C
(gcc 13.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 161 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 29,824 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-01 08:35:45
合計ジャッジ時間 2,164 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 58 WA * 45
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:16: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | long n,x=1+1e9;f(n,t){x=t>1?f(n%t/10,t/100)*10-n/t*~t:n;}main(m){scanf("%ld",&n);printf("%d",n=~(f(n,x=pow(10,m=log10(n/=x)))>n)+n/pow(10,-~m/2)+pow(10,-~m/2));}
      |                ^
main.c: In function 'f':
main.c:1:16: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:16: warning: type of 't' defaults to 'int' [-Wimplicit-int]
main.c: At top level:
main.c:1:58: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | long n,x=1+1e9;f(n,t){x=t>1?f(n%t/10,t/100)*10-n/t*~t:n;}main(m){scanf("%ld",&n);printf("%d",n=~(f(n,x=pow(10,m=log10(n/=x)))>n)+n/pow(10,-~m/2)+pow(10,-~m/2));}
      |                                                          ^~~~
main.c: In function 'main':
main.c:1:58: warning: type of 'm' defaults to 'int' [-Wimplicit-int]
main.c:1:66: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | long n,x=1+1e9;f(n,t){x=t>1?f(n%t/10,t/100)*10-n/t*~t:n;}main(m){scanf("%ld",&n);printf("%d",n=~(f(n,x=pow(10,m=log10(n/=x)))>n)+n/pow(10,-~m/2)+pow(10,-~m/2));}
      |                                                                  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | long n,x=1+1e9;f(n,t){x=t>1?f(n%t/10,t/100)*10-n/t*~t:n;}main(m){scanf("%ld",&n);printf("%d",n=~(f(n,x=pow(10,m=log10(n/=x)))>n)+n/pow(10,-~m/2)+pow(10,-~m/2));}
main.c:1:66: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | long n,x=1+1e9;f(n,t){x=t>1?f(n%t/10,t/100)*10-n/t*~t:n;}main(m){scanf("%ld",&n);printf("%d",n=~(f(n,x=pow(10,m=log10(n/=x)))>n)+n/pow(10,-~m/2)+pow(10,-~m/2));}
      |                                                                  ^~~~~
main.c:1:66: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:82: warning: implicit declaration of function 'printf' [-Wimplicit-function-d

ソースコード

diff #
プレゼンテーションモードにする

long n,x=1+1e9;f(n,t){x=t>1?f(n%t/10,t/100)*10-n/t*~t:n;}main(m){scanf("%ld",&n);printf("%d",n=~(f(n,x=pow(10,m=log10(n/=x)))>n)+n/pow(10,-~m/2)+pow(10
    ,-~m/2));}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0