結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2017-08-17 17:38:21 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 171 bytes |
| 記録 | |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 29,696 KB |
| 実行使用メモリ | 28,160 KB |
| 最終ジャッジ日時 | 2024-10-14 13:52:14 |
| 合計ジャッジ時間 | 1,426 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
コンパイルメッセージ
main.c:1:18: warning: data definition has no type or storage class
1 | long n,i,j,k,h,c;s[6<<25];main(){for(scanf("%ld",&n);i*i++<n;)for(k=5;h*=--k%2,n%i<1&&k;c+=k%2&&!s[h]++)for(j=k&2?i:n/i;j;j/=10)h=(h*10007+j%10)%200000033;printf("%d",c);}
| ^
main.c:1:18: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:27: warning: return type defaults to 'int' [-Wimplicit-int]
1 | long n,i,j,k,h,c;s[6<<25];main(){for(scanf("%ld",&n);i*i++<n;)for(k=5;h*=--k%2,n%i<1&&k;c+=k%2&&!s[h]++)for(j=k&2?i:n/i;j;j/=10)h=(h*10007+j%10)%200000033;printf("%d",c);}
| ^~~~
main.c: In function 'main':
main.c:1:38: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | long n,i,j,k,h,c;s[6<<25];main(){for(scanf("%ld",&n);i*i++<n;)for(k=5;h*=--k%2,n%i<1&&k;c+=k%2&&!s[h]++)for(j=k&2?i:n/i;j;j/=10)h=(h*10007+j%10)%200000033;printf("%d",c);}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | long n,i,j,k,h,c;s[6<<25];main(){for(scanf("%ld",&n);i*i++<n;)for(k=5;h*=--k%2,n%i<1&&k;c+=k%2&&!s[h]++)for(j=k&2?i:n/i;j;j/=10)h=(h*10007+j%10)%200000033;printf("%d",c);}
main.c:1:38: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | long n,i,j,k,h,c;s[6<<25];main(){for(scanf("%ld",&n);i*i++<n;)for(k=5;h*=--k%2,n%i<1&&k;c+=k%2&&!s[h]++)for(j=k&2?i:n/i;j;j/=10)h=(h*10007+j%10)%200000033;printf("%d",c);}
| ^~~~~
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:156: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | long n,i,j,k,h,c;s[6<<25];main(){for(scanf("%ld",&n);i*i++<n;)for(k=5;h*=--k%2,n%i<1&&k;c+=k%2&&!s[h]++)for(j=k&2?i:n/i;j;j/=10)h=(h*10007+j%10)%200000033;printf("%d",c);}
|
ソースコード
long n,i,j,k,h,c;s[6<<25];main(){for(scanf("%ld",&n);i*i++<n;)for(k=5;h*=--k%2,n%i<1&&k;c+=k%2&&!s[h]++)for(j=k&2?i:n/i;j;j/=10)h=(h*10007+j%10)%200000033;printf("%d",c);}
%20