@@ -0,0 +1,885 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        int year = sc.nextInt();%0A%0A        for (int i = 0; i %3C year; i++) %7B%0A%0A            int coder = sc.nextInt();%0A            int algorithmar = sc.nextInt();%0A            int navigator = sc.nextInt();%0A%0A            int team = 0;%0A%0A            while (1 %3C= coder && 1 %3C= algorithmar && 1 %3C= navigator) %7B%0A%0A                team++;%0A%0A                coder--;%0A                algorithmar--;%0A                navigator--;%0A%0A            %7D%0A%0A            while (2 %3C= coder && 1 %3C= algorithmar) %7B%0A%0A                team++;%0A%0A                coder -= 2;%0A                algorithmar -= 1;%0A%0A            %7D%0A%0A            while (3 %3C= coder) %7B%0A%0A                team++;%0A%0A                coder -= 3;%0A%0A            %7D%0A%0A            System.out.println(team);%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0281