Algorithm/CodeUp
1207 : 윷놀이
B2SIC
2019. 4. 28. 23:36
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include <stdio.h> int main() { int a, b, c, d; int s; scanf("%d %d %d %d", &a, &b, &c, &d); s = a + b + c + d; if (s == 0) printf("모"); if (s == 1) printf("도"); if (s == 2) printf("개"); if (s == 3) printf("걸"); if (s == 4) printf("윷"); return 0; } | cs |