結果

問題 No.491 10^9+1と回文
ユーザー vjudge1
提出日時 2025-05-16 16:01:08
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 5,124 ms
コンパイル使用メモリ 208,584 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-05-16 16:01:17
合計ジャッジ時間 7,512 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21 WA * 82
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define int long long
using namespace std;
int n;
int check(int x){
	int num=-1;
	int t=0;
	while (x){
		t=x%10;
		x/=10;
		num++;
	}
	return num*9+t;
}
signed main ()
{
	cin>>n;
	int x=n/1000000001;
	cout<<check(x);
	return 0;
}
0