#include #include using namespace std; int main() { int N, K; cin >> N >> K; vector div; int flagNum = 1; while (N >= flagNum) { if (N % flagNum == 0) div.emplace_back(flagNum); ++flagNum; } if (K > div.size()) { cout
#include int main(void){ int A, B, C; scanf("%d %d %d", &A,&B,&C); int result1 = (A+B)%C; int result2 = ((A%C) + (B%C))%C; int result3{(A*B)%C}; int result4(((A%C) * (B%C))%C); printf("%d\n%d\n%d\n%d", result1, result2, result3, result4); }그냥 테스트용으로 표현식 막 섞어써봤다.