전체 글(200)
-
[백준 5596번] 시험 점수
소스코드12345678910#include using namespace std; int main() { int s=0,t=0, d; for (int i = 0; i > d; s += d; } for (int i = 0; i > d; t += d; } cout
2018.01.10 -
[백준 12790번] Mini Fantasy War
소스코드123456789101112131415#include using namespace std; int main() { int t, a, b, c, d, e, f, g, h; cin >> t; while (t--) { cin >> a >> b >> c >> d >> e >> f >> g >> h; a += e, b += f, c += g, d += h; a = a
2018.01.10 -
[백준 10984번] 내 학점을 구해줘
소스코드12345678910111213141516171819202122#include using namespace std; int main() { cout.setf(ios::fixed); double t,n,c,g; cin >> t; while (t--) { cin >> n; c = 0.0, g = 0.0; while (n--) { double tmpC, tmpG; cin >> tmpC >> tmpG; c += tmpC, g += (tmpG*tmpC); } cout.precision(0); cout
2018.01.10 -
[백준 2884번] 알람 시계
소스코드12345678910#include using namespace std; int main() { int h, m; cin >> h >> m; h = m - 45
2018.01.10 -
[백준 5597번] 과제 안 내신 분..?
소스코드1234567#include using namespace std;int s[31],i,t;int main() { for (i = 0; i > t; s[t] = 1;} for (i = 1; i
2018.01.10 -
[백준 10707번] 수도요금
소스코드12345678910#include using namespace std; int main() { int a, b, c, d, p; cin >> a >> b >> c >> d >> p; b = (p
2018.01.10