updated radicle and removed test files
This commit is contained in:
parent
1ed92d5130
commit
b8b3f7a5ff
7 changed files with 2 additions and 19 deletions
|
@ -1 +1 @@
|
||||||
5eac5c8753f44b79bd62f02073ad437ea5d0176a
|
eff028680f5f550ecd449991d47aa7bae96bb282
|
||||||
|
|
0
4
0
4
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
0
test
0
test
0
test1
0
test1
0
test2
0
test2
0
test3
0
test3
Loading…
Add table
Add a link
Reference in a new issue