Skip to content

Commit c988bbf

Browse files
authored
Codeforces Round #642 (Div. 3) A. Most Unstable Array
1 parent 2112e0b commit c988bbf

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
4+
//#define int long long
5+
6+
int main(int argc, char **argv)
7+
{
8+
int tc;
9+
while(tc--)
10+
{
11+
int x;
12+
// 3 100
13+
// 50 0 50
14+
//
15+
// 2 100
16+
// 100 0
17+
//
18+
// 6 100
19+
// 50 0 30 0 20 0 = (50 -0) + (0 - 30 ) + (30 - 0) + (0 - 20)
20+
//
21+
// 4 100
22+
// 50 0 50 0
23+
long long n , K ,tmpK;
24+
cin>>n>>m;
25+
vector < int > vi(n , 0);
26+
while( k != 0 ){
27+
tmpK = floor(tmpK / 2) + 1;
28+
for(int i = 0; i < n ; i+=2)
29+
{
30+
31+
}
32+
}
33+
34+
}
35+
return 0;
36+
37+
}

0 commit comments

Comments
 (0)