-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1926B.cpp
More file actions
33 lines (30 loc) · 678 Bytes
/
Copy path1926B.cpp
File metadata and controls
33 lines (30 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Created on 19-Feb-24
//
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
int t;
cin >> t;
while (t--) {
int n;
cin >> n;
int num[n];
int flag = 0;
for (int i = 0; i < n; i++) {
cin >> num[i];
}
for (int i = 0; i < n; i++) {
if (num[i] > 0 ) {
if (num[i] != num[i + 1]) {
cout << "TRIANGLE" << endl;
break;
} else if (num[i] == num[i + 1]) {
cout << "SQUARE" << endl;
break;
}
}
}
}
return 0;
}