結果
| 問題 |
No.1929 Exponential Sequence
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2022-05-06 22:45:19 |
| 言語 | cLay (20241019-1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 2,571 ms |
| コンパイル使用メモリ | 181,412 KB |
| 実行使用メモリ | 176,640 KB |
| 最終ジャッジ日時 | 2024-07-06 00:08:47 |
| 合計ジャッジ時間 | 5,613 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 TLE * 1 |
| other | -- * 24 |
ソースコード
map<ll,ll>src,dst;
ll@n,@s;
src[s]=1;
rep(n){
ll@a;
for(auto t:src){
for(ll b=a;t.first-b>=0;b*=a){
dst[t.first-b]+=t.second;
}
}
swap(src,dst);
dst.clear();
}
ll z=0;
for(auto t:src){
z+=t.second;
}
wt(z);
tails