相关代码 |
|
#include int a[3], b[3]; int cmp() { int i; for(i = 0; i < 3; i++) if(a[i] > b[i]) return 1; else if(a[i] < b[i]) return -1; return 0; } int main() { int test, r; cin >> test; while(test--) { cin >> a[0] >> a[1] >> a[2]; cin >> b[0] >> b[1] >> b[2]; r = cmp(); if(r == 1) cout else if(r == 0) cout else cout } return 0; }
相关资源 |
|