#include<bits/stdc++.h>
int main() { int T,a[3]; scanf("%d",&T); while(T--) { scanf("%d%d%d",a,a+1,a+2),std::sort(a,a+3); printf("%d\n",(a[0]==0?(a[1]==0?0:(a[1]==a[2]?1:2)):(a[0]+a[1]==a[2]||a[0]==a[1]||a[1]==a[2]?2:3))); } }
题目 3524 [NOI Online 2021 1st PJ] 切蛋糕(民间数据)
2024-10-19 11:12:06
|