곱하고 빼는 문제
2845
#include<iostream>
using namespace std;
int main()
{
int man, width,i;
int news[5];
cin>>man>>width;
for(i=0;i<5;i++)
cin>>news[i];
for(i=0;i<5; i++)
{
cout<<news[i]-man*width<<" ";
}
}
2914
개수와 평균이 주어진다. 이 때 평균은 소수점 아래에서 올림된 것. 최소의 전체 개수 구하기(독해 문제?)
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a*(b-1)+1;
}
5338
윈도우 문양 출력(이스케이프 문자를 아는지)
#include<iostream>
using namespace std;
int main()
{
cout<<" _.-;;-._"<<endl;
cout<<"\'-..-\'| || |"<<endl;
cout<<"\'-..-\'|_.-;;-._|"<<endl;
cout<<"\'-..-\'| || |"<<endl;
cout<<"\'-..-\'|_.-\'\'-._|"<<endl;
}