updated radicle and removed test files
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
5eac5c8753f44b79bd62f02073ad437ea5d0176a
|
eff028680f5f550ecd449991d47aa7bae96bb282
|
||||||
|
|||||||
+1
-18
@@ -88,24 +88,7 @@ fi
|
|||||||
# ╰───────────────────────────────╯
|
# ╰───────────────────────────────╯
|
||||||
pgrep -f "rad node start" >/dev/null || {
|
pgrep -f "rad node start" >/dev/null || {
|
||||||
info "Starting Radicle node..."
|
info "Starting Radicle node..."
|
||||||
nohup rad node start > /\#include <bits/stdc++.h>
|
nohup rad node start > /dev/null 2>&1 &
|
||||||
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 &
|
|
||||||
sleep 3
|
sleep 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user