結果

問題 No.2607 Add One Digit
ユーザー vjudge1
提出日時 2025-09-04 23:22:43
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 241 bytes
コンパイル時間 1,842 ms
コンパイル使用メモリ 192,952 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-09-04 23:22:46
合計ジャッジ時間 2,964 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
string n;
long long d=0;
int main(){
    cin>>n;
    if(n.size()==1)cout<<18;
    else {
        for(int i=0;i<=n.size();i++){
            d++;
        }
        cout<<9*d;
    }
    return 0;
}
0