문제 링크 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5PhcWaAKIDFAUq
문제의 저작권은 SW Expert Academy에 있습니다.
#include <iostream> using namespace std; int main(void) { int N; cin >> N; for(int i=1; i<N; i++) { if(N%i == 0) cout << i << " "; } cout << N << "\n"; return 0; } | cs |
'C & C++ > SW Expert Academy' 카테고리의 다른 글
SWEA 2019 - 더블더블 (0) | 2018.04.27 |
---|---|
SWEA 1936 - 1대1 가위바위보 (0) | 2018.04.27 |
SWEA 1938 - 아주 간단한 계산기 (0) | 2018.04.27 |
SWEA 2025 - N줄덧셈 (0) | 2018.04.27 |
SWEA 2027 - 대각선 출력하기 (1) | 2018.04.27 |