結果
| 問題 | No.491 10^9+1と回文 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-03-13 00:34:29 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 153 bytes |
| 記録 | |
| コンパイル時間 | 969 ms |
| コンパイル使用メモリ | 29,056 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 00:36:10 |
| 合計ジャッジ時間 | 3,852 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 47 WA * 45 RE * 11 |
コンパイルメッセージ
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)+(m=pow(10,-~m/2))+n/m);}
| ^
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)+(m=pow(10,-~m/2))+n/m);}
| ^~~~
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)+(m=pow(10,-~m/2))+n/m);}
| ^~~~~
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)+(m=pow(10,-~m/2))+n/m);}
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)+(m=pow(10,-~m/2))+n/m);}
| ^~~~~
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-declaration]
1 | long n,x=1+1e9;f(n,t
ソースコード
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)+(m=pow(10,-~m/2))+n/m);}
testestest