結果
| 問題 | No.1849 Three Times Value |
| ユーザー |
|
| 提出日時 | 2022-07-09 00:10:55 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 2,000 ms |
| コード長 | 300 bytes |
| 記録 | |
| コンパイル時間 | 730 ms |
| コンパイル使用メモリ | 83,744 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-26 14:28:09 |
| 合計ジャッジ時間 | 2,140 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
#include <iostream>
using namespace std;
int main(){
long long n;cin>>n;
int nw = 1;
int ans = 0;
while(true){
string x = to_string(nw) + to_string(nw) + to_string(nw);
if(stoll(x) <= n)ans++;
else break;
nw++;
}
cout << ans << endl;
}