A. New Year and the Christmas Ornament
签到。
1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int a, b, c; 5 6 int main() 7 { 8 while (scanf("%d%d%d", &a, &b, &c) != EOF) 9 { 10 int res = min(a, min(b - 1, c - 2)); 11 printf("%d\n", res * 3 + 3); 12 } 13 return 0; 14 }