結果
問題 |
No.491 10^9+1と回文
|
ユーザー |
![]() |
提出日時 | 2017-03-10 22:33:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 610 ms |
コンパイル使用メモリ | 64,448 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-24 07:57:19 |
合計ジャッジ時間 | 3,026 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 42 WA * 61 |
ソースコード
#include <iostream> using namespace std; int main(){ long long n, ans = 0; cin >> n; for(long long i = 1; true; i *= 10,i++) for(int j = 1; j <= 9; j++){ if(n < (1e9 + 1) * i * j) goto fin; ans++; } fin:; cout << ans << endl; }