# data[].attributes.body
baitap

# data[].attributes.body
bai14thg16

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int a[105],n,S = 0;
int main()
{
	long long n;
	cin>>n;
	for(int i=1;i<=n;i++)
	{ 
	    cin>>a[i];
	    S=S+a[i];
	
	}
	cout<<S;
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int a[100],n,NK=1e9;
int main()
{
	long long n;
	cin>>n;
	for( int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(NK>a[i])NK=a[i];
	}
	cout<<NK;
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int a[100],n,NK=1e9;
int main()
{
	long long n;
	cin>>n;
	for( int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(NK>a[i])NK=a[i];
	}
	cout<<NK;
	return 0;
}

# data[].attributes.body
4.7

# data[].attributes.attachment_link.readable_text
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
	long long n,tong=0;
	cin>>n;
	long long a[n];
	for(long long i = 0;i<n;i++)
	{
		cin>>a[i];
		tong += abs(a[i]);
	}
	cout<<tong;
	return 0;
}

# data[].attributes.body
4.6

# data[].attributes.body
4.5

# data[].attributes.body
4.4

# data[].attributes.body
4.3

# data[].attributes.body
4.2

# data[].attributes.body
4.1

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
	long long n,sonhonhat = 0;
	cin>>n;
	long long a[n];
	for(long long i = 0;i<n;i++)
	{
		cin>>a[i];
		if(sonhonhat > a[i])sonhonhat = a[i];
	}
	cout<<sonhonhat;
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
	long long a[n];
	long long tong =0;
	for (int i=0;i<n;i++)
	{
		cin>>a[i];
		if(a[i]%3==0)
		{
			tong +=1;
		}
	}
	cout<<tong ;
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
	long long a[n];
	int minn=a[0];
	for(int i=0;i<n;i++)
	{
		cin>>a[i];
	}
	for (int i=0;i<n;i++)
	{
		if(a[i]%2!=0)
		{
			if(minn>a[i])
			minn=a[i];
		}
	}
	cout<<minn;
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
    int m, n;
    char ch;
    cin >> m >> n >> ch;

    for(int i = 1; i <= m; i++) {       
        for(int j = 1; j <= n; j++) {   
            cout << ch;
        }
        cout << endl;                  
    }

    return 0;
}


# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
    int m, n;
    char ch;
    cin >> m >> n >> ch;

    for(int i = 1; i <= m; i++) {       
        for(int j = 1; j <= n; j++) {   
            cout << ch;
        }
        cout << endl;                  
    }

    return 0;
}


# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;

int main() 
{	
    long long n, s = 0;   
    cin >> n;

    long long giaithua = 1;
    for(long long i = 1; i <= n; i++) {
        giaithua *= i;
        s += giaithua;
    }

    cout << s;
    return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
	long long a[n];
	int minn=a[0];
	for(int i=0;i<n;i++)
	{
		cin>>a[i];
		if (a[i]%2!=0)
		{
			if(a[i]<minn)
			minn=a[i]; 
		}
	}
	cout<<minn;
	return 0;
}

# data[].attributes.body
so nguyen to

# data[].attributes.body
tong cac chu so cua n

# data[].attributes.body
cac so chia het cho 5

# data[].attributes.attachment_link.readable_text
#include <bits/stdc++.h>
using namespace std;
int main ()
{
	int n;
	cin >> n;
	for (int i=1;i<=n;i++)
	{
		if (i%5==0) cout  <<" " << i;
	}
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
	int a[n];
	for (int i=0;i<n;i++)
	{
		cin>>a[i];
	}
	int tong =0;
	for (int j=0;j<n;j++)
	{
		if(a[j]%2!=0)
		{
			tong +=a[j];
		}
	}
	cout<<tong;
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main() 
{
    int n;
    long long giaithua = 1, tong = 0;
    cout << "Nhap n: ";
    cin >> n;
    for(int i = 1; i <= n; i++)
    {
        giaithua *= i;   
        tong += giaithua; 
    }
    cout << "Tong giai thua la: " << tong;
    return 0;
}

# data[].attributes.body
3.17

# data[].attributes.body
3.14 vòng lặp while

# data[].attributes.attachment_link.readable_text
#include <iostream >
using namespace std;
int main()
{
	int n;
	cin>>n;
	int tong =0;
	int k=0;
	while (k<n)
	{
		k++;
		tong = tong + k;
	}
	if (tong =n)
	cout<<"yes";
	if(tong >n)
	cout<<"no";
	return 0;
}

# data[].attributes.body
3.14 vòng lặp for

# data[].attributes.attachment_link.readable_text
#include <iostream >
using namespace std;
int main()
{
	int k=0;
	int tong =0;
	int n;
	cin>>n;
	for (int i=1;i<=n;i++)
	{
		k++;
		tong = tong + k;
		if(tong>=n)
		break;
	}
	if(tong==n)
	cout<<"yes";
	if (tong>n)
	cout <<"no";
	return 0;
}

# data[].attributes.body
baitaplquan

# data[].attributes.body
baitap

# data[].attributes.body
baitap4.9

# data[].attributes.body
bai4.15

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main ()
{
	int a[100],n;
	cin >> n;
	for (int i = 0; i < n; i++)
        cin >> a[i];

    int tam = 0;

    for (int i = 0; i < n; i++)
    {
        int dem = 1;
        for (int j = i + 1; j < n; j++)
        {
            if (a[i] == a[j])
                dem++;
        }
        if (dem > tam)
            tam= dem;
    }

    cout <<tam ;
                                                                                            
    return 0;
}

# data[].attributes.body
bai4.20 hh

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
	int n;
	long long k = 0;
	cin>>n;
	for ( int i=1;i<=n;i++)
	{
		k=k+i;
		if(k>=n)
		break;
	}
	if ( k>n)
	cout<<"no";
	if(k=n)
	cout<<"yes";
	return 0;
}