結果

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main() {
int N;
cin >> N;
if (N <= 9){;
cout << 18;
return 0;
}
if (N <= 99){;
cout << 27;
return 0;
}
if (N <= 999){;
cout << 36;
return 0;
}
if (N <= 9999){;
cout << 45;
return 0;
}
if (N <= 99999){;
cout << 54;
return 0;
}
if (N <= 999999){;
cout << 63;
return 0;
}
if (N <= 9999999){;
cout << 72;
return 0;
}
if (N <= 99999999){;
cout << 81;
return 0;
}
if (N <= 999999999){;
cout << 90;
}
return 0;
}
0