結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-30 22:42:55 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 428 bytes |
| コンパイル時間 | 285 ms |
| コンパイル使用メモリ | 21,248 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-04 20:41:16 |
| 合計ジャッジ時間 | 1,358 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 32 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%lld",&n);
| ^~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int f[11000000000001];
long long count(long long a){
if(a/10>0) return 10*count(a/10);
else return 10;
}
int main(int argc, char const *argv[]){
long long n,i,ans=0,j;
scanf("%lld",&n);
for(i=1;i*i<=n;i++){
if(n%i==0){
j=n/i;
if(f[i+j*count(i)]==0){
ans++;
f[i+j*count(i)]=1;
}
if(f[j+i*count(j)]==0){
ans++;
f[j+i*count(j)]=1;
}
}
}
printf("%lld\n",ans);
return 0;
}