2018/01(40)
-
[백준 12791번] Starman
소스코드12345678910111213141516171819202122232425262728#include #include using namespace std; struct a {int year;string title;}; a album[26] = { 1967, "DavidBowie", 1969, "SpaceOddity", 1970, "TheManWhoSoldTheWorld", 1971, "HunkyDory", 1972, "TheRiseAndFallOfZiggyStardustAndTheSpidersFromMars", 1973, "AladdinSane", 1973, "PinUps", 1974, "DiamondDogs", 1975, "YoungAmericans", 1976, "StationToStation"..
2018.01.10 -
[백준 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