結果
| 問題 |
No.2607 Add One Digit
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-19 21:17:11 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 304 bytes |
| コンパイル時間 | 2,141 ms |
| コンパイル使用メモリ | 192,672 KB |
| 最終ジャッジ日時 | 2025-02-21 03:28:06 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
/**
* auther: deviceF
* created: 19.04.2024 21:11:10
**/
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
string s = to_string(n);
int size = (int)s.size();
cout << 9 * size + 9 << '\n';
return 0;
}