### 题目描述

blablabla

#### 样例

#include <iostream>
using namespace std;

int main()
{
int n;
cin >> n;

for (int i=1; i<=n; i++)
if (!(n%i)) cout << i << endl;

return 0;
}


### 题目描述

blablabla

#### 样例

#include<iostream>
using namespace std;
int main()
{
int a1, a2, n;
cin>>a1;
while(cin>>n,n<=0);
a2 = a1 + n-1;
cout<<(a1+a2)*n/2; // 等差数列求和
return 0;
}



### 算法1

blablabla

#### C++ 代码

blablabla


### 算法2

blablabla

#### C++ 代码

blablabla


### 题目描述

blablabla

#### 样例

#include <iostream>
using namespace std;

int main()
{
int x;

while (true) {
cin >> x;
if (x==0) break;
for (int i=1; i<=x; i++) cout << i << " ";
cout << endl;
}

return 0;
}


### 算法1

blablabla

#### C++ 代码

blablabla


### 算法2

blablabla

#### C++ 代码

blablabla


### 题目描述

blablabla

#### 样例

#include <iostream>
using namespace std;

int main()
{
int a[101], t, max;
for (int i=1; i<=100; i++) cin >> a[i];

max = a[1];
t = 0;
for (int i=1; i<101; i++)
{
if (a[i] > max) {
max = a[i];
t = i;
}
}
cout << max << endl;
cout << t;
return 0;
}


### 题目描述

blablabla

#### 样例

#include <iostream>
using namespace std;

int main(){
int x, y, t, sum=0;
cin >> x >> y;
if (x > y) {
t=x;x=y;y=t;   // 交换下顺序
}
for (int i=x+1; i<y; i++)
if (i%2) sum+=i;
cout << sum << endl;

return 0;
}




# include [HTML_REMOVED]

using namespace std;

int main()
{
int x, y;
cin >> x >> y;

switch (x) {
case 1:
printf("Total: R$%.2lf\n", 4.0*y); break; case 2: printf("Total: R$ %.2lf\n", 4.50*y);
break;
case 3:
printf("Total: R$%.2lf\n", 5.0*y); break; case 4: printf("Total: R$ %.2lf\n", 2.0*y);
break;
case 5:
printf("Total: R$%.2lf\n", 1.5*y); break; default: break; } return 0;  }  # include <iostream> # include <cmath> using namespace std; int main() { int max(int, int); int a, b, c; cin >> a >> b >> c; if (c > max(a, b)) cout << c <<" eh o maior" <<endl; else cout << max(a, b) << " eh o maior" << endl; return 0; } int max(int a, int b) { return (a+b+fabs(a-b))/2; }  # include [HTML_REMOVED] using namespace std; int main() { int a[7] = {100, 50, 20, 10, 5, 2, 1}; int n; cin >> n; cout << n << endl; for (int i=0; i<7; i++) { cout << n/a[i] <<” nota(s) de R$” << a[i] <<”,00” << endl;
n = n % a[i];
}

return 0;


}