結果
| 問題 | No.220 世界のなんとか2 |
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2015-05-30 02:23:11 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 211 ms |
| コンパイル使用メモリ | 38,272 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-28 01:46:45 |
| 合計ジャッジ時間 | 897 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 19 |
ソースコード
#include <cstdio>
using namespace std;
//namaega184
int main(){
int p;scanf("%d",&p);
long long ans=1,tmp=1;
for(int i=0;i<p;i++)tmp*=10,ans*=9;
printf("%lld\n",(tmp-ans)+ans/3);
return 0;
}
184