백준 25206 c++1 [백준][C++] 25206번 : 너의 평점은 문제https://www.acmicpc.net/problem/25206코드#include #include using namespace std;#define SubjectCnt 20int main(){ string subject; float inputScore; string grade; float sumScore = 0; float totalScore = 0; for (int i = 0; i > subject >> inputScore >> grade; totalScore += inputScore; if (grade == "P") totalScore -= inputScore; else if (grade == "A+") sumScore += (inp.. 2024. 6. 15. 이전 1 다음