結果
| 問題 |
No.1849 Three Times Value
|
| ユーザー |
|
| 提出日時 | 2022-03-01 20:03:20 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 233 bytes |
| コンパイル時間 | 629 ms |
| コンパイル使用メモリ | 68,480 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-08 02:29:04 |
| 合計ジャッジ時間 | 1,542 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
using ll = long long;
int main(){
ll n;
cin >> n;
int i = 1;
while(stoll(to_string(i) + to_string(i) + to_string(i)) <= n) i++;
cout << i-1 << endl;
}