fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int t, n;
  6.  
  7. int main() {
  8. scanf("%d", &t);
  9.  
  10. while (t--) {
  11. scanf("%d", &n);
  12. printf("%d\n", n == 3 ? 3 : 2);
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5288KB
stdin
2
3
15
stdout
3
2