結果
問題 |
No.528 10^9と10^9+7と回文
|
ユーザー |
![]() |
提出日時 | 2025-05-16 15:21:15 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 601 bytes |
コンパイル時間 | 3,734 ms |
コンパイル使用メモリ | 276,216 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-05-16 15:21:20 |
合計ジャッジ時間 | 4,571 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 28 |
ソースコード
#include<bits/stdc++.h> #define FastIO ios::sync_with_stdio(0);cin.tie(0);cout.tie(0) #define int long long #define I using #define AK namespace #define CSPS2025 std I AK CSPS2025; const int maxn=1e6+10,maxm=1e3+10,mod=998244353; int t,n,m,x,y,u,v,w,res,ans; signed main() { cin>>n; if(n<=1e16) { for(int i=0;i<=n;i+=(1000000001)) { string s=to_string(i); string p=s; reverse(s.begin(),s.end()); if(s==p) { u++; } } cout<<u-1; return 0; } return 0; }