結果
| 問題 |
No.220 世界のなんとか2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-22 04:59:49 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 334 bytes |
| コンパイル時間 | 1,858 ms |
| コンパイル使用メモリ | 192,404 KB |
| 最終ジャッジ日時 | 2025-02-08 10:58:23 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using ld = long double;
int main(){
cin.tie(0);
ios::sync_with_stdio(0);
int P; cin >> P;
ll pow10 = 1, pow9 = 1;
rep(_,P) pow10 *= 10, pow9 *= 9;
cout << pow10 - 1 - pow9 / 3 * 2 << endl;
}