Algorithm/CodeUp
1180 : 만능 휴지통
B2SIC
2019. 4. 28. 23:32
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #include <stdio.h> int main() { int n; int comp = 0; scanf("%d", &n); comp = ((n % 10) * 10 + n / 10) * 2; if (comp > 100){ comp = comp % 100; } printf("%d\n%s", comp, comp <= 50 ? "GOOD" : "OH MY GOD"); return 0; } | cs |