단계별로 풀어보기 - 문자열 - 3단계 https://www.acmicpc.net/problem/10809 #include using namespace std; int main() { string S; string alphabet="abcdefghijklmnopqrstuvwxyz"; cin>>S; for(int i=0;i
단계별로 풀어보기 - 문자열 - 2단계 https://www.acmicpc.net/problem/11720 #include using namespace std; int main() { int N,sum=0; cin>>N; string s; cin>>s; for(int i=0;i
단계별로 풀어보기 - 문자열 - 1단계 https://www.acmicpc.net/problem/11654 #include using namespace std; int main() { char c; cin>>c; cout
단계별로 풀어보기 - 함수 - 3단계 https://www.acmicpc.net/problem/1065 #include using namespace std; int main() { int N; cin>>N; if(N
단계별로 풀어보기 - 함수 - 2단계 https://www.acmicpc.net/problem/4673 #include using namespace std; int d(int n) { int temp=n; while(n!=0) { temp+=n%10; // 원래 숫자+십의 자리 숫자+일의 자리 숫자 n=n/10; } return temp; } bool arr[10001]; int main() { for(int i=1;i
단계별로 풀어보기 - 함수 - 1단계 https://www.acmicpc.net/problem/15596 #include using namespace std; long long sum(std::vector &a) { long long ans = 0; for(int i=0;i