updated radicle and removed test files
This commit is contained in:
+1
-18
@@ -88,24 +88,7 @@ fi
|
||||
# ╰───────────────────────────────╯
|
||||
pgrep -f "rad node start" >/dev/null || {
|
||||
info "Starting Radicle node..."
|
||||
nohup rad node start > /\#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int t; cin >> t;
|
||||
while(t--) {
|
||||
int n; cin >> n;
|
||||
vector<int> a(n);
|
||||
for(int i = 0; i < n; i++) cin >> a[i];
|
||||
int ans = 0;
|
||||
for(int i = 0; i < n; i++) {
|
||||
for(int j = i + 1; j < n; j++) {
|
||||
if(__gcd(a[i], a[j]) <= 2) ans++;
|
||||
}
|
||||
}
|
||||
cout << ans << endl;
|
||||
}
|
||||
return 0;
|
||||
}dev/null 2>&1 &
|
||||
nohup rad node start > /dev/null 2>&1 &
|
||||
sleep 3
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user