Tên đăng nhập Điểm ▾ Bài tập Giới thiệu
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1

quagegom

12801 1601 1

“There was a time when I danced only for myself. Now, I dance for the First Lands.”

12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801
lapminh02022006 1231
Trịnh Châu Lập Minh, Thành phố Hồ Chí Minh
1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801
cht_kien 1172
Nguyễn Hồng Kiên, H.Tĩnh
1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1

deptrai

12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1

dadas

12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801
HinMint 1257
Phạm Hiền Minh, Hải Phòng
1601 1
12801 1601 1
12801 1601 1

include <bits/stdc++.h>

using namespace std;
vector<int> A;
set<int> res;
int sum = 0;
int n;
void Try(int i,bool used[]){
if(i == n+1) return;
for(int j = 0;j<n;j++){ if(!used[j]){ used[j] = 1; sum+=A[j]; res.insert(sum); Try(i+1,used); sum-=A[j]; used[j] = 0; } } } int main() { cin>>n;
bool used[n];
memset(used,0,sizeof(used));
for(int i = 1;i<=n;i++){
int k;cin>>k;A.push_back(k);
}
Try(1,used);
cout<<res.size()<<endl;
for(int i:res) cout<<i<<" ";
}

12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801
olp23psa02
PSA - Nguyễn Như Hùng
1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1

s=input()
s=s.split()
x=int(s[0])
n=int(s[1])
m=int(s[2])
t=((x*(n+1)-1)%(m(x-1)))//(x-1)
print(t)

12801 1601 1
12801 1601 1
12801 1601 1
12801
ICT24C10103
Lê Đức Chính
1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1
12801 1601 1