func_code_string
stringlengths 59
71.4k
|
---|
#include <bits/stdc++.h> using namespace std; int n, a[16], b[16]; int main() { double cnt = 0; ios::sync_with_stdio(false); cin >> n; for (register int i = 0; i < n; i++) cin >> a[i]; for (register int i = 0; i < n; i++) cin >> b[i]; for (register int i = 0; i < 1e6; ++i) { register bool f = false; for (register int j = 0; !f && j < n; ++j) f |= i % a[j] == b[j]; cnt += f; } cout.setf(ios::fixed, ios::floatfield); return (cout << setprecision(7) << cnt / 1e6 << endl) && 0; } |
#include <bits/stdc++.h> using namespace std; long long n, k1, k2; long long a[1005]; long long b[1005]; void ReadData() { cin >> n >> k1 >> k2; for (long long i = 1; i <= n; i++) cin >> a[i]; for (long long i = 1; i <= n; i++) cin >> b[i]; } long long c[1005]; void process() { long long k = k1 + k2; priority_queue<long long> heap; for (long long i = 1; i <= n; i++) { c[i] = abs(a[i] - b[i]); heap.push(c[i]); } while (k--) { long long tmp = heap.top(); heap.pop(); tmp--; heap.push(abs(tmp)); } long long res = 0; while (!heap.empty()) { long long tmp = heap.top(); heap.pop(); res += tmp * tmp; } cout << res; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); ReadData(); process(); } |
#include <bits/stdc++.h> using namespace std; const int N = 1002, M = 10002; pair<int, long long> dp[N][M]; map<long long, int> di; bool vis[N][M]; int nxt[N][M]; long long a[N], b[N], k; int T[M][N]; int n; long long gcd(long long a, long long b) { if (b == 0) return a; return gcd(b, a % b); } int main() { scanf( %d %lld , &n, &k); for (int i = 0; i < n; ++i) { scanf( %lld , b + i); a[i] = gcd(b[i], k); } if (k == 1) return printf( %d n%ld n , 1, min_element(b, b + n) - b + 1), 0; vector<long long> divisor; for (long long i = 1; i * i <= k; ++i) if (k % i == 0) { divisor.push_back(i); divisor.push_back(k / i); } sort(divisor.begin(), divisor.end()); divisor.resize(unique(divisor.begin(), divisor.end()) - divisor.begin()); int m = divisor.size(); for (int i = 0; i < m; ++i) di[divisor[i]] = i; for (int i = 0; i < m; ++i) for (int j = 0; j < n; ++j) T[i][j] = di[divisor[i] / gcd(divisor[i], a[j])]; nxt[n][0] = -1; dp[n][0] = {0, 0}; for (int i = 1; i < m; ++i) dp[n][i] = {n + 1, 0}; for (int i = 0; i < m; ++i) for (int j = n - 1; j >= 0; --j) { pair<int, long long> ans1 = dp[j + 1][i]; pair<int, long long> ans2 = dp[j + 1][T[i][j]]; ans2.first += 1; ans2.second += b[j]; if (ans1 <= ans2) { nxt[j][i] = nxt[j + 1][i]; dp[j][i] = ans1; } else { nxt[j][i] = j; dp[j][i] = ans2; } } pair<int, long long> ans = dp[0][m - 1]; if (ans.first > n) return puts( -1 ), 0; printf( %d n , ans.first); int pos = 0; int nx = m - 1; while (pos != -1) { if (nxt[pos][nx] != pos) pos = nxt[pos][nx]; else { nx = T[nx][pos]; printf( %d , pos + 1); pos += 1; } } puts( ); return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); int n; cin >> n; int a[100005]; for (int i = 0; i < n; i++) cin >> a[i]; sort(a, a + n); if (n == 1) { cout << -1 << endl; return 0; } bool flag = true; for (int i = 1; i < n; i++) flag = flag && (a[0] == a[i]); if (flag) { cout << 1 << endl; cout << a[0] << endl; return 0; } if (n == 2) { if ((a[0] + a[1]) % 2 == 0) cout << 3 << endl; else cout << 2 << endl; cout << 2 * a[0] - a[1] << ; if ((a[0] + a[1]) % 2 == 0) cout << (a[1] + a[0]) / 2 << ; cout << 2 * a[1] - a[0] << ; return 0; } flag = true; for (int i = 2; i < n; i++) flag = flag && (a[1] - a[0] == a[i] - a[i - 1]); if (flag) { cout << 2 << endl; cout << 2 * a[0] - a[1] << ; cout << 2 * a[n - 1] - a[n - 2] << endl; return 0; } vector<int> diff; set<int> di; for (int i = 1; i < n; i++) { diff.push_back(a[i] - a[i - 1]); di.insert(a[i] - a[i - 1]); } if (di.size() != 2) { cout << 0 << endl; return 0; } sort(diff.begin(), diff.end()); int chan = diff[n - 2]; if (chan != 2 * diff[0]) { cout << 0 << endl; return 0; } for (int i = n - 3; i >= 0; i--) { if (diff[i] == chan || diff[i] != diff[0]) { cout << 0 << endl; return 0; } } for (int i = 1; i < n; i++) { if (a[i] - a[i - 1] == chan) { if ((a[i] + a[i - 1]) % 2 == 0) { cout << 1 << endl; cout << (a[i] + a[i - 1]) / 2 << endl; return 0; } else { cout << 0 << endl; return 0; } } } return 0; } |
#include <bits/stdc++.h> using namespace std; vector<long int> fib(46, -1); int adv_fib(int n) { if (n == 0 || n == 1) { return 1; } else if (fib[n] == -1) { return fib[n] = adv_fib(n - 1) + adv_fib(n - 2); } else { return fib[n]; } } int main() { int n, curr = 1; cin >> n; for (int i = 1; i <= n; i++) { if (adv_fib(curr) == i) { cout << O ; curr++; } else { cout << o ; } } } |
#include <bits/stdc++.h> using namespace std; long long i, j, k, l, m, n, t, a[211111], b[211111], c[111111], d, s; string p[111111], q[111111]; int main() { cin >> n; for (i = 1; i <= n; i++) scanf( %I64d , &a[i]); for (i = 1; i <= n; i++) scanf( %I64d , &b[i]); i = 1; j = 1; while (i <= n) { while (a[i] != b[j] && j <= n) j++; if (j <= n) i++; else break; } if (i > n) { cout << 0; return 0; } cout << n - i + 1; } |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> v(n); for (auto &x : v) cin >> x; int mine = *min_element(v.begin(), v.end()); vector<int> temp; for (int i = 0; i < n; i++) { if (v[i] == mine) temp.push_back(i); } for (int i = 0; i < temp.size() - 1; i++) temp[i] = temp[i + 1] - temp[i]; cout << *min_element(temp.begin(), temp.end() - 1) << endl; } |
#include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 50; int n, a[maxn], ans, maxx = 0; int main() { cin >> n; for (int i = 1; i <= n; i++) { cin >> a[i]; maxx = max(maxx, a[i]); } cout << maxx; return 0; } |
#include <bits/stdc++.h> using namespace std; const int INF = 1e9 + 7; const long long INFL = 1e18 + 123; const double PI = atan2(0, -1); mt19937 tw(960172); long long rnd(long long x, long long y) { static uniform_int_distribution<long long>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6CWFG7S>5CU6eBTBFGXBh>gBGCW>gB6GWFFGGB7;T>U>6?e65C7CDGXBU: 5?FC5?iBfB7Gi:f>6?gB6GW>U>6CU6B:ECU:5GFGW?5G6C7?V:gB5GgB7GUG5?eBFKC>5C4GU> gBg:5?6?F;7G7;5?D:fB7CU24Ce>gBG>gBVFF7e:f:5CUB7?e>eB5;gBgB77eB5;FC36T>6?D: E6fBF75;e:5C5;e:f>67gB635?S6T6eBgBeB5CUFF7U:S>eB6?U;f:5?F;S>e>e>5?6;U6e>6? D2SJ7?5GHGFK6G7?FG6?EC6GH?7GXFhBg>FKW:6GhFh>FCFC4?FG6G3C7G4Gf:eB7?6? dFhBFCG;6CG;GKeBfB5Cg>7GeBg>6Ge>gBFCeB6CEGW6S>6Cg:3;4CGK4GfB5C7Gf> 5C6G4C7G3GV>T>e>FCVB5G776G4?U:fBgBUFf:fB5GU>f>gB6C6G5?T>FGg:36HC5GiGgB7G7? eB7?5KgBFG4?F76;5?eB7;EGF?7;fBgBG>eB6?6>5?FBV>D:5?eBUBXC5CGC4?6G3CW:f:5Cf: 4?F:f>eBG:e:fBU>fBUB6;36e>5CUBfF7GhFV>5C5GW>e>6?F>5?VB67T6e>eBh6U>6Cc>FBT: S>g:U6V:S:U>g>T>e>g>f>gBU6eB6CU62 ; map<unsigned long long, int> inds = { {0ull, 0}, {1ull, 1}, {2ull, 173}, {3ull, 223}, {4ull, 247}, {5ull, 259}, {6ull, 268}, {7ull, 274}, {8ull, 277}, {9ull, 278}, {10ull, 279}, {11ull, 280}, {12ull, 281}, {13ull, 282}, {14ull, 283}, {15ull, 284}, {16ull, 285}, {17ull, 286}, {18ull, 287}, {19ull, 288}, {24ull, 2}, {25ull, 96}, {26ull, 128}, {27ull, 142}, {28ull, 151}, {29ull, 157}, {30ull, 161}, {31ull, 162}, {32ull, 163}, {33ull, 164}, {34ull, 165}, {35ull, 166}, {36ull, 167}, {37ull, 168}, {38ull, 169}, {39ull, 170}, {40ull, 171}, {41ull, 172}, {48ull, 174}, {49ull, 193}, {50ull, 202}, {51ull, 208}, {52ull, 212}, {53ull, 213}, {54ull, 214}, {55ull, 215}, {56ull, 216}, {57ull, 217}, {58ull, 218}, {59ull, 219}, {60ull, 220}, {61ull, 221}, {62ull, 222}, {72ull, 224}, {73ull, 231}, {74ull, 235}, {75ull, 237}, {76ull, 238}, {77ull, 239}, {78ull, 240}, {79ull, 241}, {80ull, 242}, {81ull, 243}, {82ull, 244}, {83ull, 245}, {84ull, 246}, {96ull, 248}, {97ull, 250}, {98ull, 251}, {99ull, 252}, {100ull, 253}, {101ull, 254}, {102ull, 255}, {103ull, 256}, {104ull, 257}, {105ull, 258}, {120ull, 260}, {121ull, 261}, {122ull, 262}, {123ull, 263}, {124ull, 264}, {125ull, 265}, {126ull, 266}, {127ull, 267}, {144ull, 269}, {145ull, 270}, {146ull, 271}, {147ull, 272}, {148ull, 273}, {168ull, 275}, {169ull, 276}, {553ull, 3}, {554ull, 50}, {555ull, 67}, {556ull, 76}, {557ull, 82}, {558ull, 85}, {559ull, 86}, {560ull, 87}, {561ull, 88}, {562ull, 89}, {563ull, 90}, {564ull, 91}, {565ull, 92}, {566ull, 93}, {567ull, 94}, {568ull, 95}, {577ull, 97}, {578ull, 108}, {579ull, 114}, {580ull, 118}, {581ull, 119}, {582ull, 120}, {583ull, 121}, {584ull, 122}, {585ull, 123}, {586ull, 124}, {587ull, 125}, {588ull, 126}, {589ull, 127}, {601ull, 129}, {602ull, 133}, {603ull, 134}, {604ull, 135}, {605ull, 136}, {606ull, 137}, {607ull, 138}, {608ull, 139}, {609ull, 140}, {610ull, 141}, {625ull, 143}, {626ull, 144}, {627ull, 145}, {628ull, 146}, {629ull, 147}, {630ull, 148}, {631ull, 149}, {632ull, 150}, {649ull, 152}, {650ull, 153}, {651ull, 154}, {652ull, 155}, {653ull, 156}, {673ull, 158}, {674ull, 159}, {675ull, 160}, {1106ull, 175}, {1107ull, 181}, {1108ull, 184}, {1109ull, 185}, {1110ull, 186}, {1111ull, 187}, {1112ull, 188}, {1113ull, 189}, {1114ull, 190}, {1115ull, 191}, {1116ull, 192}, {1130ull, 194}, {1131ull, 195}, {1132ull, 196}, {1133ull, 197}, {1134ull, 198}, {1135ull, 199}, {1136ull, 200}, {1137ull, 201}, {1154ull, 203}, {1155ull, 204}, {1156ull, 205}, {1157ull, 206}, {1158ull, 207}, {1178ull, 209}, {1179ull, 210}, {1180ull, 211}, {1659ull, 225}, {1660ull, 226}, {1661ull, 227}, {1662ull, 228}, {1663ull, 229}, {1664ull, 230}, {1683ull, 232}, {1684ull, 233}, {1685ull, 234}, {1707ull, 236}, {2212ull, 249}, {12720ull, 4}, {12721ull, 24}, {12722ull, 33}, {12723ull, 38}, {12724ull, 41}, {12725ull, 42}, {12726ull, 43}, {12727ull, 44}, {12728ull, 45}, {12729ull, 46}, {12730ull, 47}, {12731ull, 48}, {12732ull, 49}, {12744ull, 51}, {12745ull, 56}, {12746ull, 59}, {12747ull, 60}, {12748ull, 61}, {12749ull, 62}, {12750ull, 63}, {12751ull, 64}, {12752ull, 65}, {12753ull, 66}, {12768ull, 68}, {12769ull, 69}, {12770ull, 70}, {12771ull, 71}, {12772ull, 72}, {12773ull, 73}, {12774ull, 74}, {12775ull, 75}, {12792ull, 77}, {12793ull, 78}, {12794ull, 79}, {12795ull, 80}, {12796ull, 81}, {12816ull, 83}, {12817ull, 84}, {13273ull, 98}, {13274ull, 101}, {13275ull, 102}, {13276ull, 103}, {13277ull, 104}, {13278ull, 105}, {13279ull, 106}, {13280ull, 107}, {13297ull, 109}, {13298ull, 110}, {13299ull, 111}, {13300ull, 112}, {13301ull, 113}, {13321ull, 115}, {13322ull, 116}, {13323ull, 117}, {13826ull, 130}, {13827ull, 131}, {13828ull, 132}, {25440ull, 176}, {25441ull, 177}, {25442ull, 178}, {25443ull, 179}, {25444ull, 180}, {25464ull, 182}, {25465ull, 183}, {292561ull, 5}, {292562ull, 13}, {292563ull, 17}, {292564ull, 18}, {292565ull, 19}, {292566ull, 20}, {292567ull, 21}, {292568ull, 22}, {292569ull, 23}, {292585ull, 25}, {292586ull, 27}, {292587ull, 28}, {292588ull, 29}, {292589ull, 30}, {292590ull, 31}, {292591ull, 32}, {292609ull, 34}, {292610ull, 35}, {292611ull, 36}, {292612ull, 37}, {292633ull, 39}, {292634ull, 40}, {293114ull, 52}, {293115ull, 53}, {293116ull, 54}, {293117ull, 55}, {293138ull, 57}, {293139ull, 58}, {305281ull, 99}, {305282ull, 100}, {6728904ull, 6}, {6728905ull, 8}, {6728906ull, 9}, {6728907ull, 10}, {6728908ull, 11}, {6728909ull, 12}, {6728928ull, 14}, {6728929ull, 15}, {6728930ull, 16}, {6729457ull, 26}, {154764793ull, 7}}; void solve() { vector<bool> bits; for (char c : encoded) { int cur = c; if (c > ) { --cur; } cur -= 50; for (int j = 0; j < 6; ++j) { bits.push_back(cur & (1 << j)); } } int c = 0; for (int i = 0; i < 289; ++i) { for (int j = 0; j < 289; ++j) { for (int k = 0; k < 4; ++k) { real_dist[i][j] |= bits[c++] << k; } } } vector<int> sieve(MAXV); for (int i = 2; i < MAXV; ++i) { if (!sieve[i]) { sieve[i] = i; for (long long j = (long long)i * i; j < MAXV; j += i) { sieve[j] = i; } } } function<int(int)> get_ind = [&](int a) { vector<int> pows; map<int, int> cnt; int tmp = a; while (tmp > 1) { int div = sieve[tmp]; cnt[div]++; tmp /= div; } for (pair<int, int> p : cnt) { pows.push_back(p.second); } sort(pows.begin(), pows.end()); unsigned long long h = 0; for (int num : pows) { h = h * 23 + num; } return inds[h]; }; int t; cin >> t; for (int i = 0; i < t; ++i) { int a, b; cin >> a >> b; int ind1 = get_ind(a); int ind2 = get_ind(b); cout << real_dist[ind1][ind2] << n ; } } int main() { cerr << fixed << setprecision(15); cout << fixed << setprecision(15); ios::sync_with_stdio(false); int tests = 1; for (int it = 1; it <= tests; ++it) { solve(); } return 0; } |
#include <bits/stdc++.h> using namespace std; signed main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); long long t; cin >> t; while (t--) { long long a, b, c, i, j; cin >> a >> b >> c; string f, s, third; if (a) { s = string(a + 1, 0 ); } if (c) { f = string(c + 1, 1 ); } if (b) { bool flag; if (a == 0 && c) { flag = true; for (i = 0; i < b; i++) { if (flag) { third += 0 ; flag = false; } else { third += 1 ; flag = true; } } cout << f << third << endl; continue; } if (c) { b--; } flag = true; for (i = 0; i < b; i++) { if (flag) { third += 1 ; flag = false; } else { third += 0 ; flag = true; } } if (a == 0 && c == 0) { if (b & 1) third += 0 ; else third += 1 ; } } cout << f << s << third << endl; } return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { string s1, s2; cin >> s1 >> s2; for (int i = 0; i < s1.size(); i++) { s1[i] = tolower(s1[i]); s2[i] = tolower(s2[i]); } if (s1 < s2) { cout << -1; } else if (s2 < s1) { cout << 1; } else { cout << 0; } return 0; } |
#include <bits/stdc++.h> using namespace std; const float pi = acos(-1.0); const int maxn = 1e5 + 5; int c[maxn]; long long a[5][maxn], b[maxn]; vector<int> vec[maxn]; void dfs(int u, int fa) { for (auto p : vec[u]) { if (p != fa) { c[p] = 6 - c[u] - c[fa]; dfs(p, u); } } } int main() { int u, v; int t, n; cin >> n; for (int i = 1; i <= 3; i++) for (int j = 1; j <= n; j++) cin >> a[i][j]; int fu, fv; for (int i = 1; i <= n - 1; i++) { cin >> u >> v; vec[u].push_back(v); vec[v].push_back(u); } int cnt = 0, cnt1 = 0; for (int i = 1; i <= n; i++) { if (vec[i].size() == 2) { cnt++; } if (vec[i].size() == 1) { fv = i; cnt1++; } } if (cnt != n - 2 && cnt1 != 2) { puts( -1 ); return 0; } long long res = 1e17, ans = 0; ; for (int i = 1; i <= 3; i++) { for (int j = 1; j <= 3; j++) { if (i == j) continue; fu = vec[fv][0]; c[fu] = i, c[fv] = j; dfs(fu, fv); ans = 0; for (int k = 1; k <= n; k++) ans += a[c[k]][k]; if (ans < res) { res = ans; for (int k = 1; k <= n; k++) { b[k] = c[k]; } } } } printf( %lld n , res); for (int i = 1; i <= n; i++) cout << b[i] << ; cout << endl; } |
#include <bits/stdc++.h> using namespace std; int n, a, b, d[500], s; int main() { scanf( %d , &n); for (int i = 1; i <= 2 * n; i++) scanf( %d , &d[i]); for (int i = 1; i <= 2 * n; i++) for (int j = 1; j <= 2 * n; j++) if (d[i] == d[i + (2 * j - 1)]) s++; printf( %d , s); scanf( ); } |
#include <bits/stdc++.h> template <class T> T Min(const T &a, const T &b) { return a < b ? a : b; } template <class T> T Max(const T &a, const T &b) { return a > b ? a : b; } template <class T> bool Chkmin(T &a, const T &b) { return a > b ? a = b, 1 : 0; } template <class T> bool Chkmax(T &a, const T &b) { return a < b ? a = b, 1 : 0; } struct fast_input { static const int L = 1 << 15 | 1; char buf[L], *l, *r; fast_input() { l = r = buf; } void Next(char &c) { if (l == r) r = (l = buf) + fread(buf, 1, L, stdin); c = l == r ? (char)EOF : *l++; } template <class T> void operator()(T &x) { char c, f = 0; for (Next(c); !isdigit(c); Next(c)) if (c == - ) f = 1; for (x = 0; isdigit(c); Next(c)) x = x * 10 + c - 0 ; if (f) x = -x; } } input; const int N = 1000 + 3; const int M = 100000 + 7; const int MOD = 998244353; int n, m, a[N], f[N][N], ans[M], b[M]; int Power(int x, int y) { int ret = 1; while (y) { if (y & 1) ret = 1LL * x * ret % MOD; x = 1LL * x * x % MOD, y >>= 1; } return ret; } int main() { int x, y, z; input(n), input(m); for (int i = (1), i_end = (n); i <= i_end; ++i) input(a[i]), b[a[i]] = 1; std::sort(a + 1, a + n + 1); ans[0] = 1; for (int i = (m + 1), i_end = (n); i <= i_end; ++i) ans[0] = 1LL * ans[0] * i % MOD; for (int i = (2), i_end = (n - m); i <= i_end; ++i) ans[0] = 1LL * ans[0] * Power(i, MOD - 2) % MOD; int maxans = 0; while (ans[maxans++]) { x = 0; for (int i = (1), i_end = (n); i <= i_end; ++i) x |= (a[i] - maxans + 1 >= 0 && b[a[i] - maxans + 1]); if (!x) { ans[maxans] = ans[maxans - 1]; continue; } f[0][0] = 1, x = 0; for (int j = (1), j_end = (n); j <= j_end; ++j) { for (int k = (1), k_end = (m); k <= k_end; ++k) { while (a[j] - a[x + 1] >= maxans) ++x; f[j][k] = (f[j - 1][k] + f[x][k - 1]) % MOD; } f[j][0] = f[j - 1][0]; } ans[maxans] = f[n][m]; } int ret = 0; for (int i = (1), i_end = (maxans - 2); i <= i_end; ++i) ret = (ret + 1LL * (ans[i] - ans[i + 1]) * i) % MOD; printf( %d n , (ret + MOD) % MOD); return 0; } |
#include <bits/stdc++.h> using namespace std; struct S { long long prime; int q, h, ji; }; S xxx[300000]; priority_queue<S> sum[4]; bool biao[300000]; bool operator<(const S &a, const S &b) { return a.prime > b.prime; } int main() { int x, y; cin >> x; for (int a = 0; a < x; a++) { cin >> xxx[a].prime; xxx[a].ji = a; } for (int a = 0; a < x; a++) cin >> xxx[a].q; for (int a = 0; a < x; a++) cin >> xxx[a].h; for (int a = 0; a < x; a++) { sum[xxx[a].q].push(xxx[a]); sum[xxx[a].h].push(xxx[a]); } cin >> y; while (y--) { cin >> x; while (!sum[x].empty() && biao[sum[x].top().ji]) sum[x].pop(); if (sum[x].empty()) cout << -1 ; else { cout << sum[x].top().prime; biao[sum[x].top().ji] = 1; sum[x].pop(); } y == 0 ? cout << endl : cout << ; } return 0; } |
#include <bits/stdc++.h> #pragma GCC optimize( Ofast ) #pragma GCC target( sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native ) using namespace std; long long n, m, a, b, c, k, temp, x, y; const int MAXN = 1e5 + 11, mod = 1e9 + 7; inline long long max(long long a, long long b) { return ((a > b) ? a : b); } inline long long min(long long a, long long b) { return ((a > b) ? b : a); } inline vector<long long> read(int n) { vector<long long> v(n); for (int i = 0; i < v.size(); i++) cin >> v[i]; return v; } long long setbits(long long n) { if (n % 4 == 0) return n; if (n % 4 == 1) return 1; if (n % 4 == 2) return n + 1; if (n % 4 == 3) return 0; return 1e18; } long long getxor(long long x, long long m) { return setbits(x + m - 1) ^ setbits(x - 1); } void sol() { cin >> n; long long txor = 0; for (int i = 0; i < n; i++) { cin >> x >> m; txor = txor ^ getxor(x, m); } if (txor) cout << tolik ; else cout << bolik ; return; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int test = 1; for (int i = 1; i <= test; i++) sol(); } |
#include <bits/stdc++.h> using namespace std; int main() { int a[101], dif[100], i, unique[101], c = 0; int min = 0, n, dif1, dif2; cin >> n; for (i = 0; i < n; i++) { cin >> a[i]; } sort(a, a + n); unique[c] = a[0]; c++; for (i = 1; i < n; i++) { if (a[i] != a[i - 1]) { unique[c] = a[i]; c++; } } if (c >= 4) { cout << -1; } else if (c == 1) { cout << 0 << endl; } else if (c == 2) { if ((unique[1] - unique[0]) % 2) { cout << unique[1] - unique[0]; } else { cout << (unique[1] - unique[0]) / 2; } } else { if (unique[2] - unique[1] == unique[1] - unique[0]) { cout << unique[2] - unique[1]; } else { cout << -1 << endl; } } } |
#include <bits/stdc++.h> using namespace std; long long n; int k; long long a[100050]; int main() { cin >> n >> k; for (int i = 1; i <= k; i++) cin >> a[i]; long long A = 1, B = 0, C = 0; for (int i = 1; i <= k; i++) { if (n - n % a[i] > C) { A = 1ll * i, B = n / a[i]; C = n - n % a[i]; } } cout << A << << B; return 0; } |
#include <bits/stdc++.h> using namespace std; int n, q, A[100005 * 3], B[100005 * 3], ans[100005]; int gcd(int a, int b) { return !b ? a : gcd(b, a % b); } vector<pair<int, int> > G[100005]; vector<int> E[100005]; pair<int, int> SL(pair<int, int> a) { int t = gcd(abs(a.first), abs(a.second)); a.first /= t, a.second /= t; return a; } int tr[100005]; void upd(int u, int v) { for (; u <= n; u += u & -u) tr[u] += v; } int qry(int u) { int r = 0; for (; u; u -= u & -u) r += tr[u]; return r; } map<pair<int, int>, int> mAp; int main() { scanf( %d , &n); for (int i = (1), LIM = (n); i <= LIM; i++) { int K; scanf( %d , &K); for (int j = (0), LIM = (K - 1); j <= LIM; j++) { scanf( %d%d , &A[j], &B[j]); if (j) G[i].push_back(SL(make_pair(A[j] - A[j - 1], B[j] - B[j - 1]))); } G[i].push_back(SL(make_pair(A[0] - A[K - 1], B[0] - B[K - 1]))); } scanf( %d , &q); for (int i = (1), LIM = (q); i <= LIM; i++) { scanf( %d%d , &A[i], &B[i]); E[B[i]].push_back(i); } for (int i = (1), LIM = (n); i <= LIM; i++) { for (auto u : G[i]) { int t = mAp[u]; upd(t + 1, 1), upd(i + 1, -1); mAp[u] = i; } for (int u : E[i]) ans[u] = qry(A[u]); } for (int i = (1), LIM = (q); i <= LIM; i++) printf( %d n , ans[i]); } |
#include <bits/stdc++.h> using namespace std; inline int inp() { return 0; } inline int inp(bool& A) { if (cin >> A) return 1; return -1; } inline int inp(char& A) { return scanf( %c , &A); } inline int inp(int& A) { return scanf( %d , &A); } inline int inp(float& A) { if (cin >> A) return 1; return -1; } inline int inp(long long& A) { return scanf( %I64d , &A); } inline int inp(double& A) { return scanf( %lf , &A); } inline int inp(char* A) { return scanf( %s , A); } inline int inp(string& A) { if (cin >> A) return 1; return -1; } template <class Front, class... Queue> inline int inp(Front& A, Queue&... B) { return inp(A) + inp(B...); } inline int oup() { return 0; } inline int oup(bool A) { if (cout << A) return 1; return -1; } inline int oup(char A) { return printf( %c , A); } inline int oup(int A) { return printf( %d , A); } inline int oup(float A) { if (cout << A) return 1; return -1; } inline int oup(long long A) { return printf( %I64d , A); } inline int oup(double A) { return printf( %lf , A); } inline int oup(char* A) { return printf(A); } inline int oup(const char* A) { return printf( %s , A); } inline int oup(string& A) { if (cout << A) return 1; return -1; } template <class Front, class... Queue> inline int oup(Front A, Queue... B) { return oup(A) + oup(B...); } template <class T> inline void remax(T& A, T B) { if (A < B) A = B; } template <class T> inline void remin(T& A, T B) { if (A > B) A = B; } string ToString(long long num) { string ret; do { ret += ((num % 10) + 0 ); num /= 10; } while (num); reverse(ret.begin(), ret.end()); return ret; } long long ToNumber(string s) { long long r = 0, p = 1; for (int i = s.size() - 1; i >= 0; --i) r += (s[i] - 0 ) * p, p *= 10; return r; } long long Gcd(long long a, long long b) { while (a %= b ^= a ^= b ^= a) ; return b; } long long Power(long long base, long long power) { long long ret = 1; while (power) { if (power & 1) ret *= base; power >>= 1; base *= base; } return ret; } long long PowerMod(long long base, long long power, long long mod) { if (!power) return 1; if (power & 1) return (base * PowerMod(base, power - 1, mod)) % mod; return PowerMod((base * base) % mod, power >> 1, mod); } int Log(long long num, long long base) { int ret = 0; while (num) { ++ret; num /= base; } return ret; } int Count(long long mask) { int ret = 0; while (mask) { if (mask & 1) ++ret; mask >>= 1; } return ret; } inline void run() { in:; int n, m, k; if (inp(n, m, k) != 3) return; vector<int> a(m), b(m), c(m); long long ans = 0; for (int i = 0; i < m; ++i) inp(a[i], b[i], c[i]); while (k--) { int tmp; inp(tmp); for (int i = 0; i < m; ++i) if (tmp >= a[i] && tmp <= b[i]) ans += (long long)c[i] + tmp - a[i]; } oup(ans, n ); goto in; } int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr), cout.tie(nullptr); run(); return 0; } |
#include <bits/stdc++.h> using namespace std; string s, ss; int idx; int main() { cin >> s; for (int i = 0; i < s.length(); i++) { if (s[i] == . ) { idx = i; break; } } if (s[idx - 1] != 9 ) { if (s[idx + 1] < 5 ) { ss = s.substr(0, idx); } else { ss = s.substr(0, idx); ss[ss.length() - 1]++; } } else if (s[idx - 1] == 9 ) { cout << GOTO Vasilisa. ; } cout << ss; return 0; } |
#include <bits/stdc++.h> using namespace std; int n, i, k, x; string s; int main() { cin >> n >> k >> s; for (i = 0; i < n; i++) { if (s[i] == # ) x++; else x = 0; if (x == k) { cout << NO ; return 0; } } cout << YES ; } |
#include <bits/stdc++.h> using namespace std; struct Node { int u; map<char, int> child; }; vector<Node> grafo; int win[100005], lose[100005]; void addTrie(int u, string &s) { for (char c : s) { if (grafo[u].child.count(c) == 0) { Node novo; novo.u = grafo.size(); grafo[u].child[c] = grafo.size(); grafo.push_back(novo); } u = grafo[grafo[u].child[c]].u; } } void solve(int u) { if (grafo[u].child.size() == 0) { win[u] = 0; lose[u] = 1; } for (pair<int, int> par : grafo[u].child) { int v = par.second; solve(v); win[u] = (win[u] || !win[v]); lose[u] = (lose[u] || !lose[v]); } } int main() { ios::sync_with_stdio(false); Node root; root.u = 0; grafo.push_back(root); int n, k; cin >> n >> k; for (int i = 0; i < n; i++) { string s; cin >> s; addTrie(0, s); } solve(0); int w = win[0], l = lose[0]; if (w == 0) cout << Second << endl; else if (w == 1 && l == 1) cout << First << endl; else if (w == 1 && l == 0 && k % 2 != 0) cout << First << endl; else cout << Second << endl; return 0; } |
#include <bits/stdc++.h> using namespace std; template <class T> using v2d = vector<vector<T> >; template <class T> bool uin(T &a, T b) { return a > b ? (a = b, true) : false; } template <class T> bool uax(T &a, T b) { return a < b ? (a = b, true) : false; } mt19937 rng(chrono::system_clock::now().time_since_epoch().count()); const int maxN = 2e5 + 10; const long long inf = 1e18; int n; long long k, a[maxN]; bool check(long long d) { long long c = 1, x = d - 1, y = 0, sum = 0; bool ovf = 0; for (int i = n; i; i--) { if (a[i] > 0 && (ovf || (long double)sum + (long double)c * a[i] > inf)) { return 1; } if (a[i] > 0) { sum += c * a[i]; } if (sum >= k) { return 1; } x++; y++; if ((long double)c * x / y > inf) { ovf = 1; } else { __int128 tmp = c; tmp *= x; tmp /= y; c = tmp; } } return sum >= k; } void solve() { cin >> n >> k; for (int i = 1; i <= (int)(n); ++i) { cin >> a[i]; } if (*max_element(a + 1, a + n + 1) >= k) { cout << 0; return; } long long l = 0, r = inf; while (r - l > 1) { long long mid = (l + r) / 2; if (check(mid)) { r = mid; } else { l = mid; } } cout << r; } int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int T = 1; while (T--) { solve(); } return 0; } |
#include <bits/stdc++.h> using namespace std; inline int qr() { int f = 0, fu = 1; char c = getchar(); while (c < 0 || c > 9 ) { if (c == - ) fu = -1; c = getchar(); } while (c >= 0 && c <= 9 ) { f = (f << 3) + (f << 1) + c - 48; c = getchar(); } return f * fu; } const int N = 2e5 + 10; int a[N], n, k, T; pair<int, int> b[N]; int main() { T = qr(); while (T--) { n = qr(), k = qr(); for (register int i = 1; i <= n; ++i) a[i] = qr(); for (register int i = 1; i <= n; ++i) qr(); sort(a + 1, a + n + 1); int m = 0; for (register int i = 1; i <= n; ++i) { b[++m] = {a[i], 0}; int j = i; while (a[j] == a[i]) b[m].second++, j++; i = j - 1; } for (register int i = 1; i <= m; ++i) b[i].second += b[i - 1].second; if (k * 2 >= a[n] - a[1]) { printf( %d n , n); continue; } vector<int> st(m + 1); int ans = 0; for (int i = 1, j = 1; i <= m; i++) { while (b[i].first - b[j].first > k) j++; st[i] = max(st[i - 1], b[i].second - b[j - 1].second); ans = max(ans, b[i].second - b[j - 1].second + st[j - 1]); } printf( %d n , ans); } return 0; } |
#include <bits/stdc++.h> using namespace std; long long a[1000006]; map<pair<long long, long long>, long long> mp; int main() { long long n, k; cin >> n >> k; if (k == 0 && n != 1) { cout << No solution ; return 0; } if (n == 1) { cout << k; return 0; } if (k != 1) { cout << k - 1; for (int i = 0; i < n - 2; i++) cout << 0; cout << 1; return 0; } if (k == 1) { cout << 9; for (int i = 0; i < n - 2; i++) cout << 0; cout << 1; return 0; } return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int64_t k; cin >> k; int64_t r = 2, c = 3; cout << r << << c << endl; int64_t arr[2][3]; int64_t ones = ((int64_t)1 << 18) - 1; arr[0][0] = ones; arr[0][1] = ((int64_t)1 << 17); arr[0][2] = 0; arr[1][0] = k; arr[1][1] = ones; arr[1][2] = k; for (int64_t i = 0; i < r; i++) { for (int64_t j = 0; j < c; j++) { cout << arr[i][j] << ; } cout << endl; } return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { int a[2][2]; cin >> a[0][0] >> a[0][1] >> a[1][0] >> a[1][1]; int n[2]; if (!a[0][0] && !a[1][0] && !a[0][1] && !a[1][1]) { cout << 0 ; return 0; } for (int i = 0; 1; i++) { int temp = i * (i - 1) / 2; if (temp == a[0][0]) { n[0] = i; break; } if (temp > a[0][0]) { cout << Impossible ; return 0; } } for (int i = 0; 1; i++) { int temp = i * (i - 1) / 2; if (temp == a[1][1]) { n[1] = i; break; } if (temp > a[1][1]) { cout << Impossible ; return 0; } } if (n[0] == 0) if (a[0][1] || a[1][0]) n[0] = 1; if (n[1] == 0) if (a[0][1] || a[1][0]) n[1] = 1; if ((a[0][1] + a[1][0]) != n[0] * n[1]) { cout << Impossible ; return 0; } int base = n[1]; while (1) { if (a[0][1] > base) { cout << 0 ; n[0]--; a[0][1] -= base; } else { for (int i = 0; i < base - a[0][1]; ++i) cout << 1 ; if (n[0] > 0) { cout << 0 ; n[0]--; } for (int i = 0; i < a[0][1]; ++i) cout << 1 ; for (int i = 0; i < n[0]; ++i) cout << 0 ; break; } } return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { int n = 0; long long moves = 0; cin >> n; vector<long long> arr(n, 0); for (int i = 0; i < n; i++) cin >> arr[i]; long long last = arr[0]; long long min = INT_MAX; bool found = false; for (int i = 1; i < n; i++) { if (arr[i] < arr[i - 1]) { if (arr[i] < min) { min = arr[i]; found = true; } } if (arr[i] > arr[i - 1] || i + 1 == n) { if (found) { moves += last - min; found = false; } min = INT_MAX; last = arr[i]; } } cout << moves << endl; return 0; } |
#include <bits/stdc++.h> using namespace std; long a, b, r; int main() { ios_base::sync_with_stdio(0); cin >> a >> b >> r; if (min(a, b) >= 2 * r) cout << First << endl; else cout << Second << endl; cin.get(); cin.get(); return 0; } |
#include <bits/stdc++.h> using namespace std; template <typename T, size_t N> struct ma : array<T, N> { T &operator[](size_t n) { return (*static_cast<array<T, N> *>(this))[n]; } }; template <class T> string to_str(const T &a) { ostringstream os; os << a; return os.str(); } template <> string to_str<long double>(const long double &a) { ostringstream os; os.precision(10); os.setf(ios::fixed); os << a; return os.str(); } template <class T> T from_str(const string &s) { istringstream is; T val; is >> val; return val; } int cond = (long long)0; map<int, vector<int> > nei; int dat[(int)1e5 + 11]; void solve() { int n, m; scanf( %d%d , &n, &m); for (auto i = (0); i < (m); ++i) { scanf( %d , &dat[i]); } long long turn = 0; for (auto i = (0); i < (m - 1); ++i) { int a = dat[i], b = dat[i + 1]; turn += abs(a - b); if (a != b) { nei[a].push_back(b); nei[b].push_back(a); } } long long res = turn; for (auto &it : (nei)) { auto kol = it.second; sort((kol).begin(), (kol).end()); int mid = kol.size() / 2; long long cand1 = 0; long long cand2 = 0; for (auto &jt : (kol)) { cand1 += abs(it.first - jt); cand2 += abs(jt - kol[mid]); } res = min(res, turn + cand2 - cand1); } cout << res << endl; } void brute() {} void gen(int i, int n, int k) {} int main(int argc, char **argv) { ios::sync_with_stdio(false); vector<string> args; int nr_test = -1; int t = 1; for (auto i = (1); i <= (argc - 1); ++i) args.push_back(argv[i]); for (auto &it : (args)) if (it == q ) cond = 10000000; for (auto &it : (args)) if (it == all ) t = 1000; for (auto &it : (args)) if (atoi(it.c_str()) > 0) nr_test = atoi(it.c_str()); for (auto &it : (args)) if (it == b ) { brute(); return 0; } for (auto &it : (args)) if (it == g && args.size() >= 4) { gen(atoi(args[1].c_str()), atoi(args[2].c_str()), atoi(args[3].c_str())); return 0; } for (auto i = (1); i <= (t); ++i) { if (nr_test == -1 || i <= nr_test) solve(); } return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { string s; vector<int> v; int n, d, p = 0, cnt = 0, mx = -1; cin >> n >> d >> s; for (int i = 0; i < n; i++) if (s[i] == 1 ) v.push_back(i); for (int i = 1; i < v.size(); i++) { if (v[i] - v[i - 1] > mx) mx = v[i] - v[i - 1]; } if (mx > d) { cout << -1; return 0; } while (p < n - 1) { p += d; while (s[p] == 0 ) p--; cnt++; } cout << cnt; return 0; } |
#include <bits/stdc++.h> using namespace std; struct Hill { int Lid, Mid, Rid; long long Lv, Mv, Rv; bool valid; Hill() : valid(false) {} Hill(int Lid, int Mid, int Rid, long long Lv, long long Mv, long long Rv) : Lid(Lid), Mid(Mid), Rid(Rid), Lv(Lv), Mv(Mv), Rv(Rv), valid(true) {} int Len() const { return valid ? Rid - Lid + 1 : 0; } Hill operator+(const Hill B) const { Hill Ans; if (Rv == B.Lv) return Ans; if (Rv < B.Lv) { if (Mid == Rid) return Hill(Lid, B.Mid, B.Rid, Lv, B.Mv, B.Rv); else return Hill(Rid, B.Mid, B.Rid, Rv, B.Mv, B.Rv); } else { if (B.Mid == B.Lid) return Hill(Lid, Mid, B.Rid, Lv, Mv, B.Rv); else return Hill(Lid, Mid, B.Lid, Lv, Mv, B.Lv); } } bool operator<(const Hill B) const { return Len() < B.Len(); } void show() { if (valid) printf( A[%d]=%d A[%d]=%d A[%d]=%d n , Lid, int(Lv), Mid, int(Mv), Rid, int(Rv)); else printf( ERROR! n ); } }; Hill CLeft(const Hill A, const Hill B) { if (!B.valid || B.Lv == A.Rv) return A; if (A.Mid == A.Rid) { if (B.Lv > A.Rv) return Hill(A.Lid, B.Mid, B.Rid, A.Lv, B.Mv, B.Rv); else if (B.Lid == B.Mid) return Hill(A.Lid, A.Mid, B.Rid, A.Lv, A.Mv, B.Rv); else return Hill(A.Lid, A.Mid, B.Lid, A.Lv, A.Mv, B.Lv); } else { if (B.Lv < A.Rv) { if (B.Lid == B.Mid) return Hill(A.Lid, A.Mid, B.Rid, A.Lv, A.Mv, B.Rv); else return Hill(A.Lid, A.Mid, B.Lid, A.Lv, A.Mv, B.Lv); } else return A; } } Hill CRight(const Hill A, const Hill B) { if (!A.valid || A.Rv == B.Lv) return B; if (B.Mid == B.Lid) { if (A.Rv > B.Lv) return Hill(A.Lid, A.Mid, B.Rid, A.Lv, A.Mv, B.Rv); else if (A.Rid == A.Mid) return Hill(A.Lid, B.Mid, B.Rid, A.Lv, B.Mv, B.Rv); else return Hill(A.Rid, B.Mid, B.Rid, A.Rv, B.Mv, B.Rv); } else { if (A.Rv < B.Lv) { if (A.Rid == A.Mid) return Hill(A.Lid, B.Mid, B.Rid, A.Lv, B.Mv, B.Rv); else return Hill(A.Rid, B.Mid, B.Rid, A.Rv, B.Mv, B.Rv); } else return B; } } struct Segment { Hill L, M, R; bool pure; Segment() {} Segment(Hill L, Hill M, Hill R, bool pure) : L(L), M(M), R(R), pure(pure) {} Segment operator+(const Segment B) const { Segment Ans; Ans.L = pure ? CLeft(L, B.L) : L; Ans.R = B.pure ? CRight(R, B.R) : B.R; Hill CM = M < B.M ? B.M : M; Ans.M = R + B.L; if (Ans.M < CM) Ans.M = CM; Ans.pure = Ans.M.Len() == Ans.R.Rid - Ans.L.Lid + 1; return Ans; } void Add(const long long D) { L.Lv += D; L.Mv += D; L.Rv += D; M.Lv += D; M.Mv += D; M.Rv += D; R.Lv += D; R.Mv += D; R.Rv += D; } void show() { L.show(); M.show(); R.show(); } }; Segment S[300001 << 2]; long long Add[300001 << 2]; int mm[300001 << 2]; void PushUp(int rt) { S[rt] = S[rt << 1] + S[rt << 1 | 1]; } void PushDown(int rt) { int ls = rt << 1, rs = ls | 1; if (Add[rt]) { Add[ls] += Add[rt]; Add[rs] += Add[rt]; S[ls].Add(Add[rt]); S[rs].Add(Add[rt]); Add[rt] = 0; } } void Build(int l, int r, int rt) { if (l == r) { int v; scanf( %d , &v); Hill tempH(l, l, l, v, v, v); S[rt] = Segment(tempH, tempH, tempH, true); return; } int m = mm[rt] = (l + r) >> 1; Build(l, m, rt << 1); Build(m + 1, r, rt << 1 | 1); PushUp(rt); Add[rt] = 0; } void Update(const int L, const int R, const long long D, const int l, const int r, const int rt) { if (L <= l && r <= R) { Add[rt] += D; S[rt].Add(D); return; } const int m = mm[rt]; PushDown(rt); if (L <= m) Update(L, R, D, l, m, rt << 1); if (R > m) Update(L, R, D, m + 1, r, rt << 1 | 1); PushUp(rt); } void Search(int l, int r, int rt) { if (l == r) { printf( %d , int(S[rt].L.Lv)); return; } PushDown(rt); int m = (l + r) >> 1; Search(l, m, rt << 1); Search(m + 1, r, rt << 1 | 1); } int main() { int n, m; while (~scanf( %d , &n)) { Build(1, n, 1); scanf( %d , &m); for (int i = 0; i < m; ++i) { static int l, r, d; scanf( %d%d%d , &l, &r, &d); Update(l, r, d, 1, n, 1); printf( %d n , S[1].M.Len()); } } return 0; } |
#include <bits/stdc++.h> using namespace std; pair<int, pair<int, int> > A[2003 * 2003], B[2003 * 2003]; pair<int, int> a[2003], b[2003]; int m, n, r, s, x, y, i, j, asd; long long t1, t2, mn; bool h; int main() { cin >> m; for (i = 1; i <= m; i++) { cin >> a[i].first; t1 += a[i].first; a[i].second = i; } cin >> n; for (i = 1; i <= n; i++) { cin >> b[i].first; t2 += b[i].first; b[i].second = i; } for (i = 1; i <= m; i++) for (j = i + 1; j <= m; j++) A[++r] = make_pair(a[i].first + a[j].first, make_pair(i, j)); for (i = 1; i <= n; i++) for (j = i + 1; j <= n; j++) B[++s] = make_pair(b[i].first + b[j].first, make_pair(i, j)); sort(a + 1, a + m + 1); sort(b + 1, b + n + 1); sort(A + 1, A + r + 1); sort(B + 1, B + s + 1); if (t1 < t2) { h = 1; swap(t1, t2); swap(m, n); swap(r, s); swap(a, b); swap(A, B); } mn = t1 - t2; for (i = j = 1; i <= m; i++) { while (abs(t1 - a[i].first + b[j].first - (t2 - b[j].first + a[i].first)) > abs(t1 - a[i].first + b[j + 1].first - (t2 - b[j + 1].first + a[i].first)) && j < n) j++; if (mn > abs(t1 - a[i].first + b[j].first - (t2 - b[j].first + a[i].first))) { mn = abs(t1 - a[i].first + b[j].first - (t2 - b[j].first + a[i].first)); asd = 1; x = i; y = j; } } for (i = j = 1; i <= r && s; i++) { while (abs(t1 - A[i].first + B[j].first - (t2 - B[j].first + A[i].first)) > abs(t1 - A[i].first + B[j + 1].first - (t2 - B[j + 1].first + A[i].first)) && j < s) j++; if (mn > abs((t1 - A[i].first + B[j].first) - (t2 - B[j].first + A[i].first))) { mn = abs((t1 - A[i].first + B[j].first) - (t2 - B[j].first + A[i].first)); asd = 2; x = i; y = j; } } cout << mn << endl << asd << endl; if (asd == 1) { if (!h) cout << a[x].second << << b[y].second; else cout << b[y].second << << a[x].second; } else if (asd) { if (!h) { cout << A[x].second.first << << B[y].second.first << endl; cout << A[x].second.second << << B[y].second.second; } else { cout << B[y].second.first << << A[x].second.first << endl; cout << B[y].second.second << << A[x].second.second; } } return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { int t, i, j, n, x, y; cin >> x >> y; bool c = 0; char a; for (i = 0; i < x; i++) { for (j = 0; j < y; j++) { cin >> a; if (a != W && a != B && a != G ) c = 1; } } if (c) puts( #Color ); else puts( #Black&White ); return 0; } |
#include <bits/stdc++.h> double const EPS = 3e-8; using namespace std; template <class T> T gcd(T a, T b) { return (b != 0 ? gcd<T>(b, a % b) : a); } template <class T> T lcm(T a, T b) { return (a / gcd<T>(a, b) * b); } struct debugger { template <typename T> debugger& operator,(const T& v) { cerr << v << t ; return *this; } } dbg; template <class A, class B> ostream& operator<<(ostream& o, const pair<A, B>& p) { return o << ( << p.first << , << p.second << ) ; } template <class T> ostream& operator<<(ostream& o, const vector<T>& v) { o << [ ; for (__typeof((v).end()) it = (v).begin(); it != (v).end(); ++it) o << *it << , ; return o << ] ; } template <class T> ostream& operator<<(ostream& o, const set<T>& v) { o << [ ; for (__typeof((v).end()) it = (v).begin(); it != (v).end(); ++it) o << *it << , ; return o << ] ; } template <class T> inline bool read(T& x) { int c = getchar(); int sgn = 1; while (~c && c < 0 || c > 9 ) { if (c == - ) sgn = -1; c = getchar(); } for (x = 0; ~c && 0 <= c && c <= 9 ; c = getchar()) x = x * 10 + c - 0 ; x *= sgn; return ~c; } int dx[] = {1, 0, -1, 0}; int dy[] = {0, 1, 0, -1}; const int NX = 1e6 + 10; int fromFront[NX], fromBack[NX]; string a, b; void solve(int cs) { cin >> a >> b; int asz = a.size(); int bsz = b.size(); int backIdx = bsz - 1; int cur = 0; for (int i = asz - 1; i >= 0; i--) { if (backIdx >= 0 && a[i] == b[backIdx]) { backIdx--; cur++; } fromBack[i] = cur; } int frontIdx = 0; cur = 0; for (int i = 0; i < asz; i++) { if (frontIdx < bsz && a[i] == b[frontIdx]) { frontIdx++; cur++; } fromFront[i] = cur; } int low = 0, high = 0; int ans = 0; while (high < asz) { int f = 0, b = 0; if (low > 0) f = fromFront[low - 1]; if (high + 1 < asz) b = fromBack[high + 1]; if (f + b >= bsz) { ans = max(ans, high - low + 1); } else { while (f + b < bsz && low <= high) { low++; f = fromFront[low - 1]; if (high + 1 < asz) b = fromBack[high + 1]; } } high++; } printf( %d n , ans); } int main() { int t = 1; for (int cs = 1; cs <= t; cs++) solve(cs); return 0; } |
#include <bits/stdc++.h> int main() { int n, k; while (~scanf( %d%d , &n, &k)) { int ant[55] = {0}; int temp = 0; int count = k; for (int i = 1; i <= n; i++) { scanf( %d , &ant[i - 1]); if (i == k) temp = ant[i - 1]; } if (temp) for (int i = k + 1; i <= n; i++) { if (ant[i - 1] >= temp) count++; else break; } else for (int i = k; i >= 1; i--) { if (!ant[i - 1]) count--; } printf( %d n , count); } return 0; } |
#include <bits/stdc++.h> using namespace std; void err(istream_iterator<string> it) {} template <typename T, typename... Args> void err(istream_iterator<string> it, T a, Args... args) { cerr << << *it << = << a; err(++it, args...); } template <typename T, typename U> inline void min_self(T& x, U y) { if (y < x) x = y; } template <typename T, typename U> inline void max_self(T& x, U y) { if (x < y) x = y; } template <class T1, class T2> ostream& operator<<(ostream& out, pair<T1, T2> pair) { return out << ( << pair.first << , << pair.second << ) ; } template <class T> ostream& operator<<(ostream& out, vector<T> vec) { out << ( ; for (auto& v : vec) out << v << , ; return out << ) ; } template <class T> ostream& operator<<(ostream& out, set<T> vec) { out << ( ; for (auto& v : vec) out << v << , ; return out << ) ; } template <class L, class R> ostream& operator<<(ostream& out, map<L, R> vec) { out << ( ; for (auto& v : vec) out << [ << v.first << , << v.second << ] ; return out << ) ; } template <class A, class B> istream& operator>>(istream& in, pair<A, B>& a) { return in >> a.first >> a.second; } template <class A> istream& operator>>(istream& in, vector<A>& a) { for (A& i : a) in >> i; return in; } long long XX[4] = {-1, 0, 1, 0}; long long YY[4] = {0, -1, 0, 1}; void solve() { long long n, res = 0; cin >> n; vector<pair<long long, long long>> a(n); for (long long i = 0; i <= n - 1; i++) cin >> a[i]; sort(a.begin(), a.end()); long long maxi = a[0].second; for (long long i = 1; i <= n - 1; i++) { if (a[i].second < maxi && a[i].first > a[i - 1].first) { res++; } max_self(maxi, a[i].second); } cout << res << n ; return; } int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); long long t = 1; while (t--) { solve(); } return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; double res = 0; long double t1x, t1y, t2x, t2y; cin >> t1x >> t1y; for (int i = 1; i < N; ++i) { t2x = t1x; t2y = t1y; cin >> t1x >> t1y; res += sqrt((t1x - t2x) * (t1x - t2x) + (t1y - t2y) * (t1y - t2y)); } printf( %.15lf n , res * K / 50); return 0; } |
#include <bits/stdc++.h> using namespace std; const int N = 100005; int down[N], sz[N], up[N], n; vector<pair<int, bool> > adj[N]; void dfs(int s, int p) { sz[s] = 1; for (auto it : adj[s]) { if (it.first != p) { dfs(it.first, s); sz[s] += sz[it.first]; if (it.second) down[s] += sz[it.first]; else down[s] += down[it.first]; } } } void dfs2(int s, int p) { for (auto it : adj[s]) { if (it.first != p) { if (it.second) up[it.first] = n - sz[it.first]; else up[it.first] = down[s] - down[it.first] + up[s]; dfs2(it.first, s); } } } int main() { int i; scanf( %d , &n); for (i = 0; i < n - 1; i++) { int a, b, c, te; bool flag = true; scanf( %d%d%d , &a, &b, &c); while (c > 0) { if (c % 10 == 4 || c % 10 == 7) ; else flag = false; c /= 10; } adj[a - 1].push_back(make_pair(b - 1, flag)); adj[b - 1].push_back(make_pair(a - 1, flag)); } long long ans = 0; dfs(0, -1); dfs2(0, -1); for (i = 0; i < n; i++) { long long temp = up[i] + down[i]; ans += temp * (temp - 1); } cout << ans; } |
#include <bits/stdc++.h> double p[1010][1010]; int a[1010]; int n, m; int main() { double t, ans; int i, j, x, y; scanf( %d%d , &n, &m); for (i = 1; i <= n; i++) scanf( %d , &a[i]); for (i = 1; i <= n; i++) for (j = 1; j <= n; j++) if (a[i] > a[j]) p[i][j] = 1; else p[i][j] = 0; for (i = 1; i <= m; i++) { scanf( %d%d , &x, &y); p[x][y] = 0.5; p[y][x] = 0.5; for (j = 1; j <= n; j++) if ((j != x) && (j != y)) { t = (p[j][x] + p[j][y]) * 0.5; p[j][x] = t; p[x][j] = 1 - t; p[j][y] = t; p[y][j] = 1 - t; } } ans = 0; for (i = 1; i <= n - 1; i++) for (j = i + 1; j <= n; j++) ans += p[i][j]; printf( %.10lf n , ans); return 0; } |
#include <bits/stdc++.h> using namespace std; int one, two, three, four; bool check(deque<int> x) { int cnt1 = 0, cnt2 = 0, cnt3 = 0, cnt4 = 0; for (int i = 0; i < x.size(); i++) { if (x[i] == 0) cnt1++; if (x[i] == 1) cnt2++; if (x[i] == 2) cnt3++; if (x[i] == 3) cnt4++; } if (cnt1 == one && cnt2 == two && cnt3 == three & cnt4 == four) { for (int i = 0; i + 1 < x.size(); i++) { if (abs(x[i] - x[i + 1]) != 1) return 0; } cout << YES << n ; for (int i : x) cout << i << ; exit(0); } return 0; } deque<int> merge(deque<int> x, deque<int> y) { for (int i : y) x.push_back(i); return x; } void go2(pair<int, int> a, pair<int, int> b, deque<int> ans) { deque<int> ans2 = ans; if (a.first < b.first) { for (int i = 0; i < a.first; i++) { ans.push_back(b.second); ans.push_back(a.second); } ans.push_back(b.second); } else { for (int i = 0; i < b.first; i++) { ans.push_back(a.second); ans.push_back(b.second); } if (a.first != b.first) ans.push_back(a.second); } check(ans); ans = ans2; if (a.first <= b.first) { for (int i = 0; i < a.first; i++) { ans.push_back(b.second); ans.push_back(a.second); } if (a.first != b.first) ans.push_back(b.second); } else { for (int i = 0; i < b.first; i++) { ans.push_back(a.second); ans.push_back(b.second); } if (a.first != b.first) ans.push_back(a.second); } ans = ans2; deque<int> zl; if (a.first < b.first) { for (int i = 0; i < a.first; i++) { zl.push_back(b.second); zl.push_back(a.second); } zl.push_back(b.second); } else { for (int i = 0; i < b.first; i++) { zl.push_back(a.second); zl.push_back(b.second); } if (a.first != b.first) zl.push_back(a.second); } check(merge(zl, ans)); zl.clear(); if (a.first <= b.first) { for (int i = 0; i < a.first; i++) { zl.push_back(b.second); zl.push_back(a.second); } if (a.first != b.first) zl.push_back(b.second); } else { for (int i = 0; i < b.first; i++) { zl.push_back(a.second); zl.push_back(b.second); } if (a.first != b.first) zl.push_back(a.second); } check(merge(zl, ans)); } void go3(pair<int, int> a, pair<int, int> b, pair<int, int> c, deque<int> cur) { deque<int> ans; if (a.first <= b.first) { for (int i = 0; i < a.first; i++) { ans.push_back(a.second); ans.push_back(b.second); } go2(pair<int, int>(b.first - a.first, b.second), c, merge(cur, ans)); go2(pair<int, int>(b.first - a.first, b.second), c, merge(ans, cur)); ans.clear(); for (int i = 0; i < a.first; i++) { ans.push_back(b.second); ans.push_back(a.second); } go2(pair<int, int>(b.first - a.first, b.second), c, merge(cur, ans)); go2(pair<int, int>(b.first - a.first, b.second), c, merge(ans, cur)); } ans.clear(); if (c.first <= b.first) { for (int i = 0; i < c.first; i++) { ans.push_back(c.second); ans.push_back(b.second); } go2(a, pair<int, int>(b.first - c.first, b.second), merge(cur, ans)); go2(a, pair<int, int>(b.first - c.first, b.second), merge(ans, cur)); ans.clear(); for (int i = 0; i < c.first; i++) { ans.push_back(b.second); ans.push_back(c.second); } go2(a, pair<int, int>(b.first - c.first, b.second), merge(cur, ans)); go2(a, pair<int, int>(b.first - c.first, b.second), merge(ans, cur)); } } void go4(int a, int b, int c, int d) { if (a <= b) { deque<int> lul; for (int i = 0; i < a; i++) { lul.push_back(0); lul.push_back(1); } go3(pair<int, int>(b - a, 1), pair<int, int>(c, 2), pair<int, int>(d, 3), lul); lul.clear(); for (int i = 0; i < a; i++) { lul.push_back(1); lul.push_back(0); } go3(pair<int, int>(b - a, 1), pair<int, int>(c, 2), pair<int, int>(d, 3), lul); } if (d <= c) { deque<int> lul; for (int i = 0; i < d; i++) { lul.push_back(3); lul.push_back(2); } go3(pair<int, int>(a, 0), pair<int, int>(b, 1), pair<int, int>(c - d, 2), lul); lul.clear(); for (int i = 0; i < d; i++) { lul.push_back(2); lul.push_back(3); } go3(pair<int, int>(a, 0), pair<int, int>(b, 1), pair<int, int>(c - d, 2), lul); } } int main() { cin >> one >> two >> three >> four; go4(one, two, three, four); cout << NO ; return 0; } |
#include <bits/stdc++.h> using namespace std; long long range(long long L) { switch (L & 3) { case 0: return L; case 1: return 1; case 2: return L + 1; case 3: return 0; } } int main() { for (int N; cin >> N;) { long long sum = 0; for (int i = 0; i < (int)(N); ++i) { long long m, x; cin >> x >> m; long long b = range(x - 1); long long a = range(x + m - 1); sum ^= b; sum ^= a; } if (sum == 0) cout << bolik << endl; else cout << tolik << endl; } return 0; } |
#include <bits/stdc++.h> using namespace std; struct trie { char ch; int son, next, father, suffix; vector<int> danger; int sum; }; trie a[205]; int now, m; void clear(int x) { a[x].son = a[x].next = 0; a[x].danger.clear(); } void insert(char *s, int l, int t, int x) { if (!a[x].son) { a[x].son = ++m; clear(m); a[m].father = x; a[m].ch = s[t]; if (t + 1 == l) a[m].danger.push_back(now); else insert(s, l, t + 1, m); return; } int i = a[x].son; while (1) { if (!a[i].next || a[i].ch == s[t]) break; i = a[i].next; } if (a[i].ch == s[t] && t + 1 == l) a[i].danger.push_back(now); else if (a[i].ch == s[t]) insert(s, l, t + 1, i); else { a[i].next = ++m; clear(m); a[m].father = x; a[m].ch = s[t]; if (t + 1 == l) a[m].danger.push_back(now); else insert(s, l, t + 1, m); } } int q[205]; int child(int x, char ch) { for (int i = a[x].son; i; i = a[i].next) if (a[i].ch == ch) return (i); if (x == 1) return (1); return (child(a[x].suffix, ch)); } void build_trie() { int l, r; l = r = 1; q[1] = 1; while (l <= r) { int x = q[l++]; for (int i = a[x].son; i; i = a[i].next) q[++r] = i; } a[1].suffix = 1; for (int i = 2; i <= r; i++) { int x = q[i]; if (a[x].father == 1) { a[x].suffix = 1; continue; } a[x].suffix = child(a[a[x].father].suffix, a[x].ch); for (int j = 0; j < (int)a[a[x].suffix].danger.size(); j++) a[x].danger.push_back(a[a[x].suffix].danger[j]); } } int n, base, k; void read(char *s) { int l; scanf( %d , &l); s[l] = 0 ; for (int i = 0; i < l; ++i) { int a; scanf( %d , &a); s[i] = a + a ; } } int v[205]; char l[205], r[205], s[205]; const int MOD = 1000000007; int curl; char cur[205]; int f[205][205][505]; int dp(int i, int state, int sum, bool cmp, bool first) { if (sum > k) { return 0; } if (i == 0) { return 1; } if (!first && !cmp && f[i][state][sum] != -1) { return f[i][state][sum]; } int ret = 0; int r = cur[curl - i] - a ; for (int d = first; d < base; ++d) { if (cmp && d > r) { continue; } int nstate = child(state, d + a ), nsum = sum + a[nstate].sum; bool ncmp = cmp && d == r; ret += dp(i - 1, nstate, nsum, ncmp, false); if (ret >= MOD) { ret -= MOD; } } if (!cmp && !first) { f[i][state][sum] = ret; } return ret; } int cal(char *s) { int l = strlen(s); curl = l; for (int i = 0; i < l; ++i) { cur[i] = s[i]; } int ret = 0; while (curl) { ret += dp(curl, 1, 0, curl == l, true); --curl; if (ret >= MOD) { ret -= MOD; } } return ret; } int check(char *s) { int sum = 0, cur = 1, l = strlen(s); for (int i = 0; i < l; ++i) { cur = child(cur, s[i]); sum += a[cur].sum; } return sum <= k; } int main() { memset(f, -1, sizeof(f)); scanf( %d%d%d , &n, &base, &k); read(l), read(r); clear(m = 1); for (int i = 0; i < n; i++) { read(s); scanf( %d , v + i); now = i; insert(s, strlen(s), 0, 1); } build_trie(); for (int i = 1; i <= m; ++i) { a[i].sum = 0; for (int j = 0; j < (int)a[i].danger.size(); ++j) { a[i].sum += v[a[i].danger[j]]; } } long long ansl = cal(l), ansr = cal(r); cout << ((ansr - ansl + check(l)) % MOD + MOD) % MOD << endl; return 0; } |
#include <bits/stdc++.h> #include <cmath> #include <regex> #define ff first #define ss second #define pb push_back #define mp make_pair #define ba back #define ppb pop_back #define eb emplace_back #define eps 1e-6 #define vec vector<long long int> #define sz(x) (int((x.size()))) #define all(x) (x).begin(),(x).end() #define FAST ios_base :: sync_with_stdio (false); cin.tie (NULL) #define ll long long #define loop(i,s,n) for(int i=s;i<n;i++) using namespace std; //----------------------------------------------------------------------------------------------------------------- const ll M = 1e9 + 7; const ll N = 2e5 + 5; const ll inf = 2e18; ll mod(ll x){ return (x%M);} ll mod_minus(ll a, ll b){ ll ans= (mod(a)-mod(b)); if(ans<0) ans=mod(ans+M); return ans;} ll mod_mul(ll a,ll b){ return mod(mod(a)*mod(b));} ll mod_add(ll a,ll b){ return mod(a+b);} ll power(ll a,ll n){ if(n==0) return 1; else if(n==1) return a; ll R=power(a,n/2)%M; if(n%2==0) { return mod(mod_mul(R,R)); } else { return mod(mod_mul(mod_mul(R,a),mod(R))); } } ll mod_inv(ll n){ return power(n,M-2);} // only if M is prime ll mod_div(ll a,ll b){ ll ans=mod(a); ll b1=power(b,M-2); ans= mod(mod_mul(ans,b1)); return ans; } ll fact_mod(ll n){ vec fact(n+1); fact[0]=1; loop(i,1,n+1){ fact[i]=mod_mul(fact[i-1],i); } return fact[n]; } unsigned long long nCr_mod(unsigned long long n, ll r) { if (r == 0) return 1; unsigned long long fac[n + 1]; fac[0] = 1; for (int i = 1; i <= n; i++) fac[i] = (fac[i - 1] * i) % M; return (fac[n] * mod_inv(fac[r]) % M * mod_inv(fac[n - r]) % M) % M; } //-------------------------------------------------------------------------------------------------------------- void solve(){ ll n; cin>>n; ll a[n]; ll sum=0; loop(i,0,n){ cin>>a[i]; sum+=a[i]; } sort(a,a+n); ll mx=a[n-1],mn=a[0]; ll z=(n-1)-sum%(n-1); if(z==(n-1)){ z=0; } sum+=z; if(mx<=sum/(n-1)){ cout<<z<<endl; return; } cout<<mx*(n-1)-sum+z<<endl; } int main(){ FAST; int t; cin>>t; while(t--){ solve(); } } |
#include <bits/stdc++.h> using namespace std; int read() { int x; scanf( %d , &x); return x; } const int N = 1123456; int a[N]; vector<int> v[N]; int c[N]; priority_queue<int> q[N]; void dfs(int x, int t) { c[x] = t; q[t].push(a[x]); for (int i = 0; i < v[x].size(); i++) { int to = v[x][i]; if (!c[to]) { dfs(to, t); } } } int main() { int n, m, i, j, x, y; n = read(); m = read(); for (i = 1; i <= n; i++) { a[i] = read(); } for (i = 1; i <= m; i++) { x = read(); y = read(); v[x].push_back(y); v[y].push_back(x); } int cnt = 1; for (i = 1; i <= n; i++) { if (!c[i]) { dfs(i, cnt++); } } for (i = 1; i <= n; i++) { printf( %d , q[c[i]].top()); q[c[i]].pop(); } } |
#include <bits/stdc++.h> using namespace std; stack<pair<int, int> > a; int main() { int n, m = 0, i = 1; cin >> n; while (n--) { int b, c; char d, e, f[40]; scanf( ); scanf( %c , &d); scanf( %d%c%d , &b, &e, &c); gets(f); b %= 12; if (f[1] == p ) b += 12; if (m) { if ((b < a.top().first) || (b == a.top().first && c < a.top().second)) ; else m--; if (b == a.top().first && c == a.top().second) i++; else i = 1; } if (i > 10) { m++; i -= 10; } a.push({b, c}); m++; } cout << m << endl; return 0; } |
#include <bits/stdc++.h> using namespace std; const long long maxn = 100010; const long long inf = 1e9 + 7; long long n, a[maxn]; long long minv = inf; long long sum[3]; int main() { scanf( %I64d , &n); for (long long i = 1; i <= n; i++) { scanf( %I64d , &a[i]); minv = min(minv, a[i]); } for (long long i = 1; i <= n; i++) a[i] -= minv; for (long long i = 1; i <= n; i++) sum[a[i]]++; sort(a + 1, a + n + 1); if (a[n] < 2) { printf( %I64d n , n); for (long long i = 1; i <= n; i++) printf( %I64d , a[i] + minv); return 0; } else { long long temp = min(sum[0], sum[2]); long long temp2 = sum[1] >> 1; if (temp > temp2) { sum[1] += (temp << 1); sum[0] -= temp; sum[2] -= temp; } else { temp = temp2; sum[1] -= (temp << 1); sum[0] += temp; sum[2] += temp; } printf( %I64d n , n - (temp << 1)); for (long long i = 0; i < 3; i++) for (long long j = 1; j <= sum[i]; j++) printf( %I64d , i + minv); } return 0; } |
#include <bits/stdc++.h> using namespace std; inline long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); } inline long long lcm(long long a, long long b) { return a * b / gcd(a, b); } long long n, k, x, type(1), amt, box; int main() { ios::sync_with_stdio(0); cin.tie(0); cin >> n >> k; for (int i = 1; i <= k; i++) { cin >> x; if (x * (n / x) > amt) { amt = x * (n / x); box = n / x; type = i; } } cout << type << << box << endl; } |
#include <bits/stdc++.h> using namespace std; void debug_out() { cerr << endl; } void clock_out() { cerr << nTime Elapsed : << 1.0 * clock() / CLOCKS_PER_SEC << s n ; } void fileio() { freopen( /home/dwai/Desktop/cp/input.txt , r , stdin); freopen( /home/dwai/Desktop/cp/output.txt , w , stdout); freopen( /home/dwai/Desktop/cp/debug.txt , w , stderr); } void ofileio() { freopen( input.txt , r , stdin); freopen( output.txt , w , stdout); } template <typename Head, typename... Tail> void debug_out(Head H, Tail... T) { cerr << << H; debug_out(T...); } int IT_MAX = 1 << 20; const long long MOD = 1000000007; const int INF = 0x3f3f3f3f; const long long LL_INF = 0x3f3f3f3f3f3f3f3f; const double PI = acos(-1); const double ERR = 1e-10; int main() { 42; ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); srand(time(NULL)); long long n, m; cin >> n >> m; long long a[n], b[m]; long long i; long long mn = 0, mx = 0; for (i = 0; i < n; i++) { cin >> a[i]; if (i == 0) { mx = a[i]; mn = a[i]; } else mx = max(mx, a[i]); mn = min(mn, a[i]); } long long ans = mn * 2; for (i = 0; i < n; i++) { if (a[i] > ans) ans = a[i]; } for (i = 0; i < m; i++) { cin >> b[i]; if (b[i] <= ans) return cout << -1, 0; } cout << ans; return 0; } |
#include <bits/stdc++.h> using namespace std; int N, K; int T[200005]; vector<int> danger; vector<pair<int, int> > v; bool cf(pair<int, int> x, pair<int, int> y) { return x.second * y.first > y.second * x.first; } int main() { scanf( %d %d , &N, &K); for (int i = 0; i < N; i++) { scanf( %d , &T[i]); if (T[i] < 0) { danger.push_back(i); } } if (danger.size() > K) puts( -1 ); else { int change = danger.size() * 2; K -= danger.size(); for (int i = 0; i < (int)danger.size(); i++) { if (i == danger.size() - 1) v.push_back(make_pair(N - danger[i] - 1, 1)); else v.push_back(make_pair(danger[i + 1] - danger[i] - 1, 2)); } sort(v.begin(), v.end(), cf); int idx = 0; while (idx < v.size()) { if (K - v[idx].first >= 0) { K -= v[idx].first; change -= v[idx].second; } idx++; } printf( %d n , change); } return 0; } |
#include <bits/stdc++.h> #define ff first #define ss second #define ll long long #define ld long double #define pb push_back #define eb emplace_back #define mp make_pair #define mt make_tuple #define pii pair<int, int> #define pll pair<ll,ll> #define vi vector<int> #define vl vector<ll> #define vii vector<pii> #define sws ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define endl n #define teto(a, b) ((a+b-1)/(b)) using namespace std; // Extra #define forn(i, n) for(int i = 0; i < (int)n; i++) #define forne(i, a, b) for(int i = a; i <= b; i++) #define all(x) x.begin(), x.end() #define dbg(msg, var) cout << msg << << var << endl; // const int MAX = 200010; const ll MOD = (int)1e9 +7; const int INF = 1e9; const ll LLINF = 0x3f3f3f3f3f3f3f3f; const ld EPS = 1e-8; int n, l, r, s; vector<vector<bool>> tab; vector<vector<bool>> btab; int dp(int idx, int soma) { if(soma > s) return 0; if(idx >= n) { return (soma == s); } if(btab[idx][soma]) return tab[idx][soma]; // cout << idx << << soma << endl; int res = 0; int pega = dp(idx+1, soma + idx+1); int npega = dp(idx+1, soma); if(npega >= pega) { res = npega; } else { res = pega; } btab[idx][soma] = true; return tab[idx][soma] = res; } vi solve(vi vals, int sz, bool& ruim) { int t = vals.size(); vi foi(n+1, 0); forn(i, t) foi[vals[i]] = 1; ruim = false; while(t < sz and !ruim) { bool brk = false; forne(i, 1, n) { if(!foi[i]) continue; forne(j, 1, i-1) { if(j == i-j) continue; if(!foi[j] and !foi[i-j]) { foi[i] = 0; foi[j] = 1; foi[i-j] = 1; t++; brk = true; break; } } if(brk) break; } if(!brk) ruim = true; } return foi; } int32_t main() { // sws; int t; cin >> t; while(t--) { cin >> n >> l >> r >> s; tab.assign(n, vector<bool>(s+1, -1)); btab.assign(n, vector<bool>(s+1, 0)); bool win = dp(0, 0); if(win) { vi vals, p(n+1, -1); set<int> pos; forne(i, 1, n) pos.insert(i); int idx = 0, soma = 0; while(idx < n) { if(dp(idx+1, soma)) { idx++; } else { soma += idx+1; vals.pb(idx+1); idx++; } } if(vals.size() > (r-l+1)) { cout << -1 << endl; continue; } bool ruim; // for(auto val : vals) cout << val << ; // cout << endl; vi foi = solve(vals, (r-l+1), ruim); // cout << ruim = << ruim << endl; // forne(i, 1, n) cout << foi[i] << ; // cout << endl; if(ruim) cout << -1 << endl; else { int id1 = 1, id2 = 1; forne(i, 1, n) { if(l <= i and i <= r) { while(id1 <= n and !foi[id1]) id1++; cout << id1 << ; id1++; } else { while(id2 <= n and foi[id2]) id2++; cout << id2 << ; id2++; } } cout << endl; } } else { cout << -1 << endl; } } // verificar limites, long long return 0; } |
#include <bits/stdc++.h> #pragma GCC optimize( Ofast ) #pragma GCC optimization( unroll-loops ) std::pair<int, int> DR[] = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}, {-1, 1}, {-1, -1}, {1, 1}, {1, -1}}; using namespace std; const long long mod = 998244353; long long nop = 70; vector<int> primes(nop + 1, 1); void sieve() { primes[1] = primes[0] = 0; for (long long i = 2; i * i <= nop; i++) { if (primes[i]) { for (long long j = i * i; j <= nop; j += i) { primes[j] = 0; } } } } long long gcd(long long a, long long b) { if (b > a) swap(b, a); if (b == 0) return a; return gcd(b, a % b); } void extgcd(long long a, long long b, long long& x, long long& y) { if (a == 0) { x = a; y = b; return; } extgcd(b % a, a, x, y); long long y1 = y, x1 = x; x = y1 - (b / a) * x1; y = x1; } long long lcm(long long a, long long b) { return (a * b) / gcd(a, b); } long long bexp(long long num, long long e) { long long ans = 1; while (e > 0) { if (e & 1) { ans *= num; } num *= num; e >>= 1; } return ans; } long long mexp(long long num, long long e) { long long ans = 1; while (e > 0) { if (e & 1) { ans = (ans * num) % mod; } num *= num; num %= mod; e >>= 1; } return ans % mod; } long long modinv(long long a) { a %= mod; return mexp(a, mod - 2); } void solve() { long long n, k; cin >> n >> k; string s; cin >> s; sort(s.begin(), s.end()); vector<long long> cnt(26, 0); for (long long i = 0; i < (n); i++) { cnt[s[i] - a ]++; } int first = -1, last = -1, nod = 0; for (long long i = 0; i < (26); i++) { if (cnt[i]) { nod++; if (first == -1) first = i; last = i; } } if (cnt[first] < k) { cout << s[k - 1] << n ; return; } string worst = ; worst += char( a + first); if (nod >= 3 || (nod == 2 && cnt[first] > k)) { for (long long i = k; i < n; i++) { worst += s[i]; } } else { for (long long i = k; i < n; i++) { worst += s[i]; i += (k - 1); } } cout << worst << n ; } int main() { cin.tie(0); cout.tie(0); ios::sync_with_stdio(0); int t = 1; cin >> t; for (long long T = 1; T <= (t); T++) { solve(); } return 0; } |
#include <bits/stdc++.h> using namespace std; char str[100010]; int ct[100010][4]; int main() { int N, x[5], R, L, M; scanf( %s , str); N = strlen(str); for (int i = 1; i <= N; i++) { for (int j = 0; j < 3; j++) ct[i][j] = ct[i - 1][j]; ct[i][str[i - 1] - x ]++; } scanf( %d , &M); for (int i = 0; i < M; i++) { scanf( %d%d , &L, &R); L--; if (R - L < 3) { puts( YES ); continue; } for (int j = 0; j < 3; j++) x[j] = ct[R][j] - ct[L][j]; if (x[0] <= x[1] && x[1] <= x[2] && x[2] - x[0] <= 1) puts( YES ); else if (x[1] <= x[2] && x[2] <= x[0] && x[0] - x[1] <= 1) puts( YES ); else if (x[2] <= x[0] && x[0] <= x[1] && x[1] - x[2] <= 1) puts( YES ); else puts( NO ); } return 0; } |
#include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 5; int n, a[maxn]; struct node { int pre; bool flag; int other; } num[2 * maxn]; int main(int argc, char const *argv[]) { while (cin >> n) { bool flag = true; for (int i = 0; i <= n; i++) { cin >> a[i]; if (a[i] != 1) flag = false; } if (flag == true) { cout << perfect << endl; continue; } bool temp = false; bool ans = false; int cnt = 1; for (int i = 0; i <= n; i++) { if (i > 0 && a[i] > 1 && a[i - 1] > 1 && ans == false) { ans = true; int par = cnt - 1; int k = a[i]; k--; while (k--) { num[cnt].pre = par; num[cnt].other = par - 1; num[cnt].flag = true; cnt++; } num[cnt].pre = num[cnt].other = par; num[cnt].flag = true; cnt++; } else { int par = cnt - 1; int k = a[i]; while (k--) { num[cnt].pre = par; num[cnt].flag = false; cnt++; } } } if (ans == false) { cout << perfect << endl; continue; } cout << ambiguous << endl; for (int i = 1; i < cnt; i++) cout << num[i].pre << ; cout << endl; for (int i = 1; i < cnt; i++) { if (num[i].flag == false) cout << num[i].pre; else cout << num[i].other; cout << ; } cout << endl; } return 0; } |
#include <bits/stdc++.h> using namespace std; int mymax(int x) { int max = 0; while (x) { int s = x % 10; if (s > max) max = s; x /= 10; } return max; } int zh(int x, int n) { int s = 0, p = 1; while (x) { s += x % 10 * p; x /= 10; p *= n; } return s; } int main() { int a, b; cin >> a >> b; int n = max(mymax(a), mymax(b)) + 1; int num = zh(a, n) + zh(b, n); int j = 0; while (num) { int s = num % n; num /= n; j++; } cout << j << endl; return 0; } |
#include <bits/stdc++.h> using namespace std; class Constellation { static const long long N = 100010; inline long long sign(long long x) { return x > 0 ? 1 : x == 0 ? 0 : -1; } struct point { long long x, y, num; } b[N]; long long n; long long cross(const point &a, const point &b, const point &c) { return sign((b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x)); } bool contain(const point &a, const point &b, const point &c, const point &p) { long long v1 = cross(a, b, p), v2 = cross(b, c, p), v3 = cross(c, a, p); return v1 * v2 >= 0 && v2 * v3 >= 0 && v3 * v1 >= 0; } public: void solve() { cin >> n; for (long long i = 1; i <= n; ++i) cin >> b[i].x >> b[i].y; long long p1 = 1, p2 = 2, p3 = 0; for (long long i = 3; i <= n; ++i) if (cross(b[p1], b[p2], b[i])) { p3 = i; break; } for (long long i = 1; i <= n; ++i) if (i != p1 && i != p2 && i != p3 && contain(b[p1], b[p2], b[p3], b[i])) { if (cross(b[p1], b[p2], b[i])) p3 = i; else p2 = i; } cout << p1 << << p2 << << p3 << endl; } } T; int main() { T.solve(); } |
#include <bits/stdc++.h> double eps = 1e-9; using namespace std; int main() { std::ios::sync_with_stdio(false); int x, y, z, w, b, a; cin >> x >> y >> z >> w >> b >> a; cout << (2 * (2 * x + a + y) * (z + y) - (a * a + b * b + y * y + z * z)) / 2; return 0; } |
#include <bits/stdc++.h> using namespace std; int dirx[] = {1, 0, -1, 0}; int diry[] = {0, 1, 0, -1}; int a; vector<int> graph[100005]; int dist[100005]; bool visit[100005]; int cnt = 0; bool flag = false; int dfs(int u, int par) { visit[u] = true; for (int i = 0; i < graph[u].size(); i++) { if (!visit[graph[u][i]]) dist[u] += dfs(graph[u][i], u); } if (dist[u] != 0 && (dist[u] + 1) % 2 == 0) { cnt++; dist[u] = 0; return 0; } else return 1; } int main() { scanf( %d , &a); int x, y; int start = 0; for (int i = 0; i < a - 1; i++) { scanf( %d %d , &x, &y); start = x; graph[x].push_back(y); graph[y].push_back(x); } if (a % 2 == 1) { cout << -1 << endl; return 0; } dfs(start, 0); cout << cnt - 1 << endl; } |
#include <bits/stdc++.h> #pragma comment(linker, /STACK:167772160000 ) using namespace std; long long dp[5100][5100]; long long x[5100]; int a[5100], b[5100], c[5100], d[5100]; int main() { int leftminright = 0; int n, s, e; cin >> n >> s >> e; s--; e--; for (int i = 0; i < n; i++) cin >> x[i]; for (int i = 0; i < n; i++) cin >> a[i]; for (int i = 0; i < n; i++) cin >> b[i]; for (int i = 0; i < n; i++) cin >> c[i]; for (int i = 0; i < n; i++) cin >> d[i]; x[n] = 0; for (int i = 0; i < n + 2; i++) for (int j = 0; j < n + 2; j++) dp[i][j] = 1E18; dp[0][0] = 0; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (i != 0) { if (j == 0 && leftminright != 1) continue; } if (i == s) { leftminright--; long long now = dp[i][j]; now += d[i]; dp[i + 1][j + 1] = min(dp[i + 1][j + 1], now + (x[i + 1] - x[i]) * ((j + 1) * 2 + leftminright)); now -= d[i]; now += c[i]; if (j + leftminright + 1 > 0) dp[i + 1][j] = min(dp[i + 1][j], now + (x[i + 1] - x[i]) * (j * 2 + leftminright)); leftminright++; continue; } if (i == e) { leftminright++; long long now = dp[i][j]; now += b[i]; dp[i + 1][j] = min(dp[i + 1][j], now + (x[i + 1] - x[i]) * (j * 2 + leftminright)); now -= b[i]; now += a[i]; if (j == 0) { leftminright--; continue; } dp[i + 1][j - 1] = min(dp[i + 1][j - 1], now + (x[i + 1] - x[i]) * (2 * (j - 1) + leftminright)); leftminright--; continue; } long long now = dp[i][j]; now += b[i]; now += d[i]; dp[i + 1][j + 1] = min(dp[i + 1][j + 1], now + (x[i + 1] - x[i]) * ((j + 1) * 2 + leftminright)); now -= d[i]; now += c[i]; if (j + leftminright > 0) dp[i + 1][j] = min(dp[i + 1][j], now + (x[i + 1] - x[i]) * (j * 2 + leftminright)); now -= b[i]; now += a[i]; now -= c[i]; now += d[i]; if (j > 0) dp[i + 1][j] = min(dp[i + 1][j], now + (x[i + 1] - x[i]) * (j * 2 + leftminright)); now -= d[i]; now += c[i]; if (j > 0 && j + leftminright > 0) dp[i + 1][j - 1] = min(dp[i + 1][j - 1], now + (x[i + 1] - x[i]) * ((j - 1) * 2 + leftminright)); } if (i == s) leftminright--; if (i == e) leftminright++; } cout << dp[n][0]; return 0; } |
#include <bits/stdc++.h> using namespace std; const double PI = acos(-1.0); const double EPS = 1e-8; const long long INF = 0x3f3f3f3f3f3f3f3f; inline long long readll() { long long x(0), op(1); char ch = getchar(); while (ch < 0 || ch > 9 ) { if (ch == - ) op = -1; ch = getchar(); } while (ch >= 0 && ch <= 9 ) x = x * 10 + ch - 0 , ch = getchar(); return x * op; } const int sz = 2e5 + 9; long long a[sz], n; long long solve(long long a, long long b) { if (a == 0 || a == b) return 0; int l = 1, r = n; if (b) { if (b < a) l = b + 1; else r = b - 1; } return (a - l + 1) * (r - a + 1); } int main() { n = readll(); for (int i = 1; i < n + 1; ++i) a[i] = readll(); a[0] = a[n + 1] = 0; long long ans = 0; for (int i = 0; i < n + 1; ++i) { ans += solve(a[i], a[i + 1]); ans += solve(a[i + 1], a[i]); } cout << ans / 2 << endl; return 0; } |
#include <bits/stdc++.h> using namespace std; const int max_n = 200222, inf = 1000111222; int n, m, a[max_n]; bool check(int cnt) { long long sum = 0; int last = 1; for (int i = 0; i < n; ++i) { if (i % cnt == 0) --last; if (a[i] + last < 0) break; sum += (a[i] + last); } return sum >= m; } int main() { scanf( %d%d , &n, &m); for (int i = 0; i < n; ++i) scanf( %d , &a[i]); sort(a, a + n); reverse(a, a + n); int l = 0, r = n + 1; while (r - l > 1) { int mid = (l + r) / 2; if (check(mid)) r = mid; else l = mid; } if (r > n) puts( -1 ); else printf( %d n , r); return 0; } |
#include <bits/stdc++.h> using namespace std; long long t[4 * 100100], dp[100100], a[100100], b[100100]; long long K = 1, n, m; void build() { while (K < m + 2) K <<= 1; } long long query(long long l, long long r) { long long ans = 0; for (l += K - 1, r += K + 1; l ^ r ^ 1; l >>= 1, r >>= 1) { if (~l ^ 1) ans = ((ans) >= (t[l + 1]) ? (ans) : (t[l + 1])); if (r ^ 1) ans = ((ans) >= (t[r - 1]) ? (ans) : (t[r - 1])); } return ans; } void update(long long id, long long v) { for (t[id += K] = v, id >>= 1; id >= 1; id >>= 1) t[id] = max(t[id << 1 | 1], t[id << 1]); } long long get_id(long long x) { long long l = 1, r = m, mid; while (l < r) { mid = (l + r + 1) >> 1; if (b[mid] > x) r = mid - 1; else l = mid; } return l; } void unique() { m = 1; for (long long i = 2; i <= n; i++) if (b[i] != b[m]) b[++m] = b[i]; } void input() { scanf( %I64d , &n); for (long long i = 1, r, h; i <= n; i++) { scanf( %I64d%I64d , &r, &h); a[i] = b[i] = r * r * h; } return; } void init() { sort(b + 1, b + n + 1); unique(); build(); return; } void work() { for (long long i = 1; i <= n; i++) { long long id = get_id(a[i]); dp[i] = query(1, id - 1) + a[i]; update(id, dp[i]); } return; } void output() { printf( %.15lf , query(1, m) * M_PI); return; } int main() { input(); init(); work(); output(); return 0; } |
#include <bits/stdc++.h> using namespace std; int n, k, c[100005], visit[100005], tp = 0; vector<int> a[100005], ans; bool ok[100005]; void dfs(int u) { visit[u] = tp; for (int i = 0; i < a[u].size(); i++) { int v = a[u][i]; if (ok[v]) continue; if (visit[v] == tp) { cout << -1; exit(0); } else dfs(v); } ans.push_back(u); ok[u] = 1; } int main() { ios_base::sync_with_stdio(0); cin.tie(0); cin >> n >> k; for (int i = 1; i <= k; i++) cin >> c[i]; for (int i = 1; i <= n; i++) { int t; cin >> t; while (t--) { int u; cin >> u; a[i].push_back(u); } } for (int i = 1; i <= k; i++) { if (!visit[c[i]]) { tp++; dfs(c[i]); } } cout << ans.size() << n ; for (int i = 0; i < ans.size(); i++) cout << ans[i] << ; return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { long long int n; cin >> n; long long int sum = n * (n - 1) / 2; if (n == 0) { cout << 0; return 0; } if ((n % 2 == 0 && n % 4 != 0) || (n % 2 == 1 && n % 4 != 3)) cout << 1; else cout << 0; return 0; } |
#include <bits/stdc++.h> using namespace std; template <typename F, typename S> ostream &operator<<(ostream &os, const pair<F, S> &p) { return os << ( << p.first << , << p.second << ) ; } template <typename T> ostream &operator<<(ostream &os, const vector<T> &v) { os << { ; typename vector<T>::const_iterator it; for (it = v.begin(); it != v.end(); it++) { if (it != v.begin()) os << , ; os << *it; } return os << } ; } template <typename T> ostream &operator<<(ostream &os, const set<T> &v) { os << [ ; typename set<T>::const_iterator it; for (it = v.begin(); it != v.end(); it++) { if (it != v.begin()) os << , ; os << *it; } return os << ] ; } template <typename F, typename S> ostream &operator<<(ostream &os, const map<F, S> &v) { os << [ ; typename map<F, S>::const_iterator it; for (it = v.begin(); it != v.end(); it++) { if (it != v.begin()) os << , ; os << it->first << = << it->second; } return os << ] ; } int n, m; string hor, ver; int give_dir(char ch) { if (ch == > || ch == v ) return 1; else return -1; } bool valid(int x, int y) { if (x < 0 || y < 0 || x >= n || y >= m) return false; return true; } void dfs(int x, int y, vector<vector<bool> > &visited) { visited[x][y] = true; int nx, ny; nx = x + give_dir(ver[y]); ny = y + give_dir(hor[x]); if (valid(nx, y) && !visited[nx][y]) dfs(nx, y, visited); if (valid(x, ny) && !visited[x][ny]) dfs(x, ny, visited); } int main() { cin >> n >> m; cin >> hor >> ver; for (int k = 0; k < (n); k++) { for (int l = 0; l < (m); l++) { vector<vector<bool> > visited(n, vector<bool>(m, false)); dfs(k, l, visited); for (int i = 0; i < (n); i++) { for (int j = 0; j < (m); j++) { if (!visited[i][j]) { cout << NO << endl; return 0; } } } } } cout << YES << endl; return 0; } |
#include <bits/stdc++.h> template <class T> void cxk(T& a, T b) { a = a > b ? a : b; } template <class T> void cnk(T& a, T b) { a = a < b ? a : b; } long long gi() { long long x = 0, f = 1; char ch = getchar(); while (!isdigit(ch)) f ^= ch == - , ch = getchar(); while (isdigit(ch)) x = x * 10 + ch - 0 , ch = getchar(); return f ? x : -x; } int col[200010], f[200010][2][2][2], p2[400010]; void inc(int& x, int y) { x = x + y >= 1000000007 ? x + y - 1000000007 : x + y; } int main() { int n = gi(), p = gi(); for (int i = 1; i <= n; ++i) col[i] = gi(); p2[0] = 1; for (int i = 1; i <= n + n; ++i) p2[i] = 2 * p2[i - 1] % 1000000007; f[1][0][0][0] = 1; for (int i = 1; i <= n; ++i) for (int j = 0; j < 2; ++j) for (int k = 0; k < 2; ++k) for (int l = 0; l < 2; ++l) if (f[i][j][k][l]) { if (col[i] != 1) { inc(f[i + 1][1][k][!l], 1ll * p2[i - 1 - !!k] * f[i][j][k][l] % 1000000007); if (k) inc(f[i + 1][j][k][l], 1ll * p2[i - 2] * f[i][j][k][l] % 1000000007); } if (col[i] != 0) { inc(f[i + 1][j][1][!l], 1ll * p2[i - 1 - !!j] * f[i][j][k][l] % 1000000007); if (j) inc(f[i + 1][j][k][l], 1ll * p2[i - 2] * f[i][j][k][l] % 1000000007); } } int ans = 0; for (int i = 0; i < 2; ++i) for (int j = 0; j < 2; ++j) inc(ans, f[n + 1][i][j][p]); printf( %d n , ans); return 0; } |
#include <bits/stdc++.h> using namespace std; #define me(a, b) memset(a, b, sizeof(a)) #define IOS() ios::sync_with_stdio(false), cin.tie(0) #define endl n typedef long long ll; typedef pair<ll, ll> pll; typedef pair<int, int> pii; const int INF = 0x3f3f3f3f; const int maxn = 2e5 + 5; const ll mod = 1e9 + 7; int cnt[26]; int n, k; vector<pii> ans; int check() { ans.clear(); int sum = 0; for(int i = 0; i < 26; ++i) { int r = cnt[i] % k; if(r){ ans.push_back(pii(i, k - r)); sum += k - r; } } return sum; } void solve() { me(cnt, 0); string s; cin >> n >> k >> s; for(char &c : s) ++cnt[c - a ]; if(check() == 0) { cout << s << endl; return ; } for(int i = s.size()-1; i >= 0; --i) { char &c = s[i]; --cnt[c - a ]; for(int j = s[i] - a + 1; j < 26; ++j) { c = j + a ; ++cnt[j]; int sum = s.size()-i-1 - check(); --cnt[j]; if(sum >= 0 && sum % k == 0) { string t; for(int p = 0; p <= i; ++p) t.push_back(s[p]); t.append(sum, a ); for(pii p : ans) { t.append(p.second, p.first+ a ); } cout << t << endl; return ; } } } cout << -1 n ; } int main() { IOS(); int T; cin >> T; while(T--) solve(); return 0; } |
#include <bits/stdc++.h> using namespace std; int f[100001], g[100001], h[100001]; int n, cnt; bool work() { cnt = -1; for (int i = 0; i < n; ++i) { if (g[i] != -1) { if (f[i] != i) return false; } else { if (g[f[i]] == -1) { g[i] = ++cnt; h[cnt] = f[i]; g[f[i]] = cnt; } else { if (h[g[f[i]]] != f[i]) return false; h[g[f[i]]] = f[i]; g[i] = g[f[i]]; } } } return true; } int main() { cin >> n; for (int i = 0; i < n; ++i) cin >> f[i]; for (int i = 0; i < n; ++i) --f[i]; for (int i = 0; i < n; ++i) g[i] = h[i] = -1; if (work()) { cout << ++cnt << endl; for (int i = 0; i < n; ++i) cout << ++g[i] << ; cout << endl; for (int i = 0; i < cnt; ++i) cout << ++h[i] << ; } else cout << -1 << endl; return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { long long int n; cin >> n; cout << n / 2 + 1; } |
#include <bits/stdc++.h> using namespace std; const int maxl = 200005; int T, n, mk, seq[maxl]; char s[maxl]; inline char read() { char ch = getchar(); while (ch != < && ch != > ) ch = getchar(); return ch; } int main() { scanf( %d , &T); while (T--) { scanf( %d , &n); mk = 0; memset(seq, 0, sizeof(seq)); for (register int i = 1; i < n; i++) s[i] = read(); s[0] = > ; s[n] = < ; for (register int i = n; i; i--) if (s[i - 1] == > && s[i] == < ) seq[i] = ++mk; mk = n; for (register int i = 1, j, tmp; i <= n; i++) { if (seq[i]) continue; if (s[i - 1] == > ) seq[i] = mk--; else { for (j = i; s[j] != > && j < n; j++) ; tmp = j; for (; j >= i; j--) seq[j] = mk--; i = tmp; } } for (register int i = 1; i <= n; i++) printf( %d , seq[i]); printf( n ); memset(seq, 0, sizeof(seq)); mk = 0; for (register int i = 1; i <= n; i++) if (s[i - 1] == > && s[i] == < ) seq[i] = ++mk; mk = n; for (register int i = n, j, tmp; i; i--) { if (seq[i]) continue; if (s[i] == < ) seq[i] = mk--; else { for (j = i; s[j - 1] != < && j > 1; j--) ; tmp = j; for (; j <= i; j++) seq[j] = mk--; i = tmp; } } for (register int i = 1; i <= n; i++) printf( %d , seq[i]); printf( n ); } return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { ifstream in( date.in ); ofstream out( date.out ); long long nr2, k, rez[4001], con = 0, nr, n, pli[4001], plp[4001], inc[4001], i, j; cin >> n; for (i = 1; i <= n; i++) cin >> pli[i] >> plp[i] >> inc[i]; for (i = 1; i <= n; i++) { nr = nr2 = 0; if (inc[i] >= 0) { rez[++con] = i; nr = pli[i]; for (j = i + 1; nr > 0 && j <= n; j++) { if (inc[j] >= 0) { inc[j] -= nr--; } else { if (pli[j]) { inc[j] -= nr; pli[j] = 0; nr2 = plp[j]; for (k = j + 1; k <= n; k++) inc[k] -= nr2; } } } } else { if (pli[i]) { pli[i] = 0; nr2 = plp[i]; for (k = i + 1; k <= n; k++) inc[k] -= nr2; } } } cout << con << n ; for (j = 1; j <= con; j++) cout << rez[j] << ; return 0; } |
#include <bits/stdc++.h> using namespace std; const int mod = 1000000007; const int N = 128; int num[N]; int main() { int n; cin >> n; for (int i = 1; i <= n; ++i) { cin >> num[i]; } int m; cin >> m; for (int i = 0; i < m; ++i) { int x, y; cin >> x >> y; num[x - 1] += y - 1; num[x + 1] += num[x] - y; num[x] = 0; } for (int i = 1; i <= n; ++i) { cout << num[i] << endl; } } |
#include <bits/stdc++.h> using namespace std; int p[3010000], n; int main() { scanf( %d , &n); for (int i = 1; i < n + 1; i++) p[i] = i; for (int i = 2; i < n + 1; i++) { int s = p[i - 1], ns; for (int j = i - 1; j <= n + i - 2; j += i) { ns = p[j + i]; if (j + i <= n + i - 2) p[j + i] = s; else p[n + i - 1] = s; s = ns; } } for (int i = 1; i < n + 1; i++) printf( %d , p[n - 1 + i]); } |
#include <bits/stdc++.h> using namespace std; int main() { int arr[101]; int n; cin >> n; for (int i = 0; i < n; i++) { cin >> arr[i]; } sort(arr, arr + n); for (int i = 0; i < n; i++) { cout << arr[i] << ; } } |
#include <bits/stdc++.h> using namespace std; const int N = 1e6 + 100; long long arr[N], d[N], tree[N << 2], mx[N << 2]; void build(int rt, int l, int r) { if (l == r) { tree[rt] = mx[rt] = arr[l]; return; } int m = (l + r) / 2; build(rt << 1, l, m); build(rt << 1 | 1, m + 1, r); tree[rt] = tree[rt << 1] + tree[rt << 1 | 1]; mx[rt] = max(mx[rt << 1], mx[rt << 1 | 1]); } void update(int L, int R, int rt, int l, int r) { if (mx[rt] <= 2) return; if (l == r) { tree[rt] = mx[rt] = d[tree[rt]]; return; } int m = (l + r) >> 1; if (L <= m) update(L, R, rt << 1, l, m); if (R > m) update(L, R, rt << 1 | 1, m + 1, r); tree[rt] = tree[rt << 1] + tree[rt << 1 | 1]; mx[rt] = max(mx[rt << 1], mx[rt << 1 | 1]); } long long query(int L, int R, int rt, int l, int r) { if (L <= l && r <= R) { return tree[rt]; } int m = (l + r) >> 1; long long ans = 0; if (L <= m) ans += query(L, R, rt << 1, l, m); if (R > m) ans += query(L, R, rt << 1 | 1, m + 1, r); return ans; } int main() { ios::sync_with_stdio(false); int n, m, t, l, r; for (int i = 1; i < N; i++) { for (int j = i; j < N; j += i) d[j]++; } cin >> n >> m; for (int i = 1; i <= n; i++) cin >> arr[i]; build(1, 1, n); while (m--) { cin >> t >> l >> r; if (t == 1) update(l, r, 1, 1, n); else cout << query(l, r, 1, 1, n) << endl; } } |
#include <bits/stdc++.h> using namespace std; const int a[] = {0, 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51, 1, 2, 1, 14, 1, 2, 2, 14, 1, 6, 1, 4, 2, 2, 1, 52, 2, 5, 1, 5, 1, 15, 2, 13, 2, 2, 1, 13, 1, 2, 4, 267, 1, 4, 1, 5, 1, 4, 1, 50, 1, 2, 3, 4, 1, 6, 1, 52, 15, 2, 1, 15, 1, 2, 1, 12, 1, 10, 1, 4, 2}; int main() { int n; cin >> n; cout << a[n]; return 0; } |
#include <bits/stdc++.h> using namespace std; template <class T> inline bool fs(T &x) { int c = getchar(); int sgn = 1; while (~c && c < 0 || c > 9 ) { if (c == - ) sgn = -1; c = getchar(); } for (x = 0; ~c && 0 <= c && c <= 9 ; c = getchar()) x = x * 10 + c - 0 ; x *= sgn; return ~c; } int main() { long long int n, m, cnt = 0; fs(n); fs(m); for (long long int i = 1; i * i <= m; i++) { if (m % i == 0 && m / i <= n) { if (m / i != i) cnt++; cnt++; } } cout << cnt << endl; return 0; } |
#include <bits/stdc++.h> using namespace std; int solve(vector<pair<int, int> > v, int price) { if (v.size() < 2) return 0; vector<int> p, b; for (int i = 0; i < v.size(); i++) p.push_back(v[i].first), b.push_back(v[i].second); int amx[v.size()]; amx[0] = b[0]; for (int i = 1; i < b.size(); i++) amx[i] = max(amx[i - 1], b[i]); int ans = 0; for (int i = 0; i < v.size(); i++) { int id = upper_bound(p.begin(), p.begin() + i, price - p[i]) - p.begin(); id--; if (id < 0 || id >= v.size()) continue; if (id != i) ans = max(ans, b[i] + amx[id]); } return ans; } int main() { int i, j, k; int n, m; int c, d; int x, y; char ch; cin >> n >> c >> d; int mc = 0, md = 0; vector<pair<int, int> > coins, diamonds; for (i = 0; i < n; i++) { cin >> x >> y >> ch; if (ch == C ) { if (c >= y) mc = max(mc, x), coins.push_back({y, x}); } else { if (d >= y) md = max(md, x), diamonds.push_back({y, x}); } } int ans = 0; if (mc > 0 && md > 0) ans = mc + md; sort(coins.begin(), coins.end()); sort(diamonds.begin(), diamonds.end()); ans = max(ans, solve(coins, c)); ans = max(ans, solve(diamonds, d)); printf( %d , ans); return 0; } |
#include <bits/stdc++.h> using namespace std; int _, n; char s[100005]; int main() { scanf( %d , &_); while (_--) { scanf( %d , &n); s[0] = a ; scanf( %s , s + 1); int p = -1; for (int i = n; i >= 1; i--) { if (s[i] == 0 ) { p = i; break; } } bool f = 0; for (int i = 1; i <= n; i++) { if (s[i] == 1 ) { if (s[i + 1] == 0 ) f = 1; else f = 0; if (i < p) { continue; } printf( 1 ); } else { if (f) { printf( 0 ); i = p; continue; } printf( 0 ); } } puts( ); } } |
#include <bits/stdc++.h> using namespace std; int n, ans, notOK; map<int, int> M; int main() { cin >> n; for (int i = 0, x; i < n; i++) cin >> x, M[x]++; for (map<int, int>::iterator it = M.begin(); it != M.end(); it++) { if (it->first) { if (it->second == 2) ans++; else if (it->second > 2) notOK = 1; } } cout << (notOK ? -1 : ans); } |
#include <bits/stdc++.h> using namespace std; vector<int> cr1[27]; vector<int> cr2[27]; int s1[27]; int s2[27]; struct node { int x; int y; }; int main() { int n; cin >> n; char c; for (int i = 0; i < n; i++) { cin >> c; if (c == ? ) { s1[26]++; cr1[26].push_back(i); } else { s1[c - a ]++; cr1[c - a ].push_back(i); } } for (int i = 0; i < n; i++) { cin >> c; if (c == ? ) { s2[26]++; cr2[26].push_back(i); } else { s2[c - a ]++; cr2[c - a ].push_back(i); } } int cnt = 0; vector<node> nd; for (int i = 0; i < 26; i++) { int x = s1[i] - 1; int y = s2[i] - 1; while (x >= 0 && y >= 0) { node n1; n1.x = cr1[i][x]; n1.y = cr2[i][y]; nd.push_back(n1); cnt++; x--; y--; } if (x >= 0 && y < 0) { node n1; while (x >= 0 && s2[26] > 0) { n1.x = cr1[i][x]; n1.y = cr2[26][s2[26] - 1]; nd.push_back(n1); cnt++; s2[26]--; x--; } } else if (x < 0 && y >= 0) { node n1; while (y >= 0 && s1[26] > 0) { n1.x = cr1[26][s1[26] - 1]; n1.y = cr2[i][y]; nd.push_back(n1); cnt++; s1[26]--; y--; } } } while (s1[26] > 0 && s2[26] > 0) { node n1; n1.x = cr1[26][s1[26] - 1]; n1.y = cr2[26][s2[26] - 1]; nd.push_back(n1); cnt++; s1[26]--; s2[26]--; } cout << cnt << endl; for (int i = 0; i < nd.size(); i++) cout << nd[i].x + 1 << << nd[i].y + 1 << endl; } |
#include <bits/stdc++.h> using namespace std; void actionFun() { long long n; cin >> n; long long c = 2; for (int i = 0; i < n; i++) { cout << c << ; ++c; } cout << endl; return; } int main() { int t; cin >> t; while (t--) { actionFun(); } } |
#include <bits/stdc++.h> using namespace std; int main() { int n; while (~scanf( %d , &n)) { int cnt = 0; for (int i = 1; i < n; i++) { for (int j = i + 1; j < n; j++) { int sum = i * i + j * j; if (sum <= n * n) { if ((int)sqrt(sum) * (int)sqrt(sum) == sum) cnt++; } } } printf( %d n , cnt); } return 0; } |
#include <bits/stdc++.h> using namespace std; int k[1005], n, i, j; long long kx[1005]; int main() { cin >> n; for (i = 1; i <= n; i++) cin >> k[i]; kx[1] = 2; for (i = 2; i <= n; i++) { if (k[i] == i) kx[i] = 2; else { for (j = k[i]; j < i; j++) kx[i] = (kx[i] + kx[j]) % 1000000007; kx[i] = (kx[i] + 2) % 1000000007; } } long long ans = 0; for (i = 1; i <= n; i++) ans = (ans + kx[i]) % 1000000007; cout << ans; return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false), cin.tie(NULL); long long n; cin >> n; vector<long long> a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } if (n == 1) { cout << YES ; return 0; } vector<long long> v; long long cnt0 = 1; for (int i = 1; i < n; i++) { if (a[i] != a[i - 1]) { v.push_back(cnt0); cnt0 = 1; } else cnt0++; if (i == n - 1) { v.push_back(cnt0); } } long long cnt = 1; for (int i = 0; i < v.size(); i++) { if (v[i] == v[i + 1]) cnt++; } if (cnt == v.size()) cout << YES ; else cout << NO ; } |
#include <bits/stdc++.h> using namespace std; #pragma GCC push_options #pragma GCC optimize( unroll-loops ) int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); long long int INF = 10e18; long long t; cin >> t; while (t--) { long long n; cin >> n; long long a[n], b[n], c[n]; for (long long i = 0; i < n; i++) { cin >> a[i] >> b[i]; } for (long long i = 1; i <= n; i++) { c[i % n] = max(0ll, a[i % n] - b[i - 1]); } long long sum = accumulate(c, c + n, 0ll); long long res = INF; for (long long i = 0; i < n; i++) { res = min(res, sum + a[i] - c[i]); } cout << res << endl; } return 0; } |
#include <bits/stdc++.h> using namespace std; int contrib[312345] = {0}; bool in_set[312345] = {0}; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n, k; cin >> n >> k; vector<int> ans; int cnt = 0; for (int i = 1; i <= n / 2; i++) { if (cnt + contrib[i] <= k) { ans.push_back(i); in_set[i] = true; cnt += contrib[i]; for (int j = i + i; j <= n; j += i) contrib[j]++; } else { while (cnt + contrib[i] > k) { cnt -= contrib[ans.back()]; for (int j = ans.back() + ans.back(); j <= n; j += ans.back()) contrib[j]--; in_set[ans.back()] = false; ans.pop_back(); } ans.push_back(i); in_set[i] = true; cnt += contrib[i]; for (int j = i + i; j <= n; j += i) contrib[j]++; } if (cnt == k) break; } priority_queue<pair<int, int> > pq; for (int i = n / 2 + 1; i <= n; i++) { if (in_set[i]) continue; pq.push(make_pair(contrib[i], i)); } while (!pq.empty()) { while (!pq.empty() && cnt + pq.top().first > k) pq.pop(); if (pq.empty()) break; cnt += pq.top().first; ans.push_back(pq.top().second); pq.pop(); } if (cnt != k) { cout << No << endl; return 0; } cout << Yes << endl; cout << ans.size() << endl; for (int i = 0; i < ans.size(); i++) { if (i) cout << ; cout << ans[i]; } cout << endl; } |
#include <bits/stdc++.h> #pragma GCC optimize(2) using namespace std; void qread(int &x) { int neg = 1; x = 0; char c = getchar(); while (c < 0 || c > 9 ) { if (c == - ) neg = -1; c = getchar(); } while (c >= 0 && c <= 9 ) x = 10 * x + c - 0 , c = getchar(); x *= neg; } const int maxn = 200005; char c[maxn]; int n, m; string s, t; int main() { scanf( %d%d , &n, &m); scanf( %s , c); s = c; scanf( %s , c); t = c; bool ok = false; for (int(i) = 0; (i) < n; i++) if (s[i] == * ) ok = true; if (!ok) { puts(s == t ? YES : NO ); return 0; } int pre = 0, suf = 0; while (s[pre] != * && s[pre] == t[pre]) pre++; while (s[n - suf - 1] != * && s[n - suf - 1] == t[m - suf - 1]) suf++; if (s[pre] == * && s[n - suf - 1] == * && pre - 1 < m - suf) puts( YES ); else puts( NO ); return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n == 1) { cout << -1 << endl; return 0; } cout << n << << n + 1 << << n * (n + 1) << endl; return 0; } |
#include <bits/stdc++.h> using namespace std; using int64 = long long; using pii = pair<int, int>; using vchar = vector<char>; using vvchar = vector<vchar>; using vint = vector<int>; using vint64 = vector<int64>; using vvint = vector<vint>; using vbool = vector<bool>; using vpii = vector<pii>; template <typename T> T sqr(T x) { return x * x; } template <typename T> T gcd(T a, T b) { return b == 0 ? a : gcd(b, a % b); } pair<int, vint> solveD(vvint g, int k) { enum { NOT_VISITED, STARTED, FINISHED }; const int n = g.size(); vint depth(n, -1); depth[0] = 0; vint parent(n, -1); vint loopState(n, NOT_VISITED); pair<int, vint> result; result.first = 0; std::function<void(int)> DFS = [&](int v) { loopState[v] = STARTED; const int previous = parent[v]; if (result.first != 0) return; int backVertex = -1; int backDepth = -1; for (auto to : g[v]) { if (to == previous) continue; if (loopState[to] == STARTED && depth[to] > backDepth) { backVertex = to; backDepth = depth[to]; } } if (backVertex != -1) { vint loop; for (int u = v; u != backVertex; u = parent[u]) { loop.push_back(u); } loop.push_back(backVertex); reverse(std::begin(loop), std::end(loop)); assert(depth[v] - depth[backVertex] + 1 == loop.size()); const int loopLength = loop.size(); if (loopLength > k) { result.first = 1; for (int i = 0; i < loop.size(); i += 2) { result.second.push_back(loop[i]); } result.second.resize((k + 1) / 2); } else { result.first = 2; result.second = loop; } return; } for (auto to : g[v]) { if (loopState[to] == NOT_VISITED) { parent[to] = v; depth[to] = depth[v] + 1; DFS(to); if (result.first != 0) return; } } loopState[v] = FINISHED; }; DFS(0); if (result.first != 0) { return result; } vint colors(n, -1); std::function<void(int, int)> biColor = [&](int v, int color) { colors[v] = color; for (auto to : g[v]) { if (colors[to] == -1) { biColor(to, 1 - color); } } }; biColor(0, 0); int colorCount[2] = {0}; for (int i = 0; i < n; ++i) { colorCount[colors[i]]++; } const int bestColor = colorCount[0] > colorCount[1] ? 0 : 1; result.first = 1; for (int i = 0; i < n; ++i) { if (colors[i] == bestColor) { result.second.push_back(i); } } result.second.resize((k + 1) / 2); return result; } int main() { int T = 1; std::ios::sync_with_stdio(false); while (T--) { int n; cin >> n; ; int m; cin >> m; ; int k; cin >> k; ; vvint g(n); while (m--) { int u; cin >> u; ; int v; cin >> v; ; u--, v--; g[u].push_back(v); g[v].push_back(u); } auto result = solveD(g, k); assert(result.first == 1 || result.first == 2); cout << result.first << endl; for (int& v : result.second) { v++; } if (result.first == 2) { cout << result.second.size() << endl; } std::copy(std::begin(result.second), std::end(result.second), ostream_iterator<int>(cout, )); cout << endl; } return 0; } |
#include <bits/stdc++.h> using namespace std; int a[500000]; int mina, maxa; int n, k; long long sum = 0; bool check(int c) { sum = 0; for (int i = 0; i < n; i++) { if (a[i] + c < mina) { sum += mina - c - a[i]; } else { break; } } if (sum > k) return false; return true; } bool checkp(int c) { sum = 0; for (int i = 0; i < n; i++) { if (a[i] - c > maxa) { sum += a[i] - c - maxa; } } if (sum > k) return false; return true; } int main() { scanf( %d %d , &n, &k); long long sum = 0; for (int i = 0; i < n; i++) { scanf( %d , &a[i]); sum += a[i]; } if (sum % n == 0) { mina = maxa = sum / n; } else { mina = sum / n; maxa = sum / n + 1; } sort(a, a + n); int ll = 0, rr = 1000000000; while (ll != rr) { int mid = (ll + rr) / 2; if (check(mid)) { rr = mid; } else { ll = mid + 1; } } int lll = 0, rrr = 1000000000; while (lll != rrr) { int mid = (lll + rrr) / 2; if (checkp(mid)) { rrr = mid; } else { lll = mid + 1; } } printf( %lld , (long long)lll + ll + maxa - mina); scanf( %d , &n); return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { int n, m, s, f, i; cin >> n >> m >> s >> f; long long t; map<long long, pair<int, int>> h; pair<int, int> R; for (i = 0; i < m; i++) { cin >> t >> R.first >> R.second; h[t] = R; } i = 1; if (s < f) while (s != f) { if (h.find(i) == h.end()) { cout << R ; s++; } else { if ((h[i].first <= s && s <= h[i].second) || (h[i].first <= s + 1 && s + 1 <= h[i].second)) { cout << X ; } else { cout << R ; s++; } } i++; } else { while (s != f) { if (h.find(i) == h.end()) { cout << L ; s--; } else { if ((h[i].first <= s && s <= h[i].second) || (h[i].first <= s - 1 && s - 1 <= h[i].second)) { cout << X ; } else { cout << L ; s--; } } i++; } } } |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int d[n]; int total = 0; for (int i = 0; i < n; i++) { cin >> d[i]; total += d[i]; } int s, t; cin >> s >> t; if (s == t) { cout << 0; return 0; } if (s > t) swap(s, t); int ans = 0; for (int i = s; i < t; i++) { ans += d[i - 1]; } cout << min(ans, total - ans); } |
#include <bits/stdc++.h> using namespace std; int n, m, Q; double sy, l[200100], r[200100], sum[200100], zl, zr, x, y, ans; struct Node { double x, y; } bj[2][200100], tmp, L, R; inline bool lef(Node u, Node v, Node w) { if (u.x == v.x) return w.x < u.x; double t; t = v.x - (v.x - u.x) * (v.y - w.y) / (v.y - u.y); return w.x < t; } inline double ask(int u) { double p, q; if (bj[0][u].x == x) p = x; else { p = x - (x - bj[0][u].x) * (y - sy) / y; } if (bj[1][u].x == x) q = x; else { q = x - (x - bj[1][u].x) * (y - sy) / y; } return max((double)0, min(q, zr) - max(p, zl)); } int main() { int i, j, p, q, mid, a, b; cin >> sy >> zl >> zr >> n; L.y = R.y = sy, L.x = zl, R.x = zr; for (i = 1; i <= n; i++) { scanf( %lf%lf , &l[i], &r[i]); sum[i] = sum[i - 1] + r[i] - l[i]; bj[0][i].y = 0, bj[0][i].x = l[i]; bj[1][i].y = 0, bj[1][i].x = r[i]; } cin >> m; for (i = 1; i <= m; i++) { scanf( %lf%lf , &x, &y); ans = 0; tmp.x = x, tmp.y = y; for (p = 1, q = n; p < q;) { mid = ((p + q) >> 1); if (lef(tmp, bj[0][mid], L)) q = mid; else p = mid + 1; } a = p - 1; for (p = 1, q = n; p < q;) { mid = ((p + q) >> 1); if (!lef(tmp, bj[1][mid], R)) p = mid + 1; else q = mid; } b = p; printf( %.10f n , ask(a) + ask(b) * (a != b) + max((double)0, sum[b - 1] - sum[a]) * (y - sy) / y); } } |
#include <bits/stdc++.h> using namespace std; #pragma warning(disable : 4996) const int MAX_N = 1000009; const long long mod = 998244353; long long modpow(long long a, long long b, long long m) { long long p = 1, q = a; for (int i = 0; i < 32; i++) { if ((b / (1LL << i)) % 2 == 1) { p *= q; p %= m; } q *= q; q %= m; } return p; } long long N, fact[MAX_N], factinv[MAX_N]; void init() { fact[0] = 1; for (int i = 1; i <= 1000000; i++) fact[i] = (1LL * fact[i - 1] * i) % mod; for (int i = 0; i <= 1000000; i++) factinv[i] = modpow(fact[i], mod - 2, mod); } long long ncr(long long n, long long r) { if (r < 0 || n < r) return 0; return (fact[n] * factinv[r] % mod) * factinv[n - r] % mod; } int main() { cin >> N; init(); long long V1 = modpow(modpow(3, N, mod), N, mod) - modpow((modpow(3, N, mod) - 3LL + mod), N, mod); V1 += mod; V1 *= 2LL; V1 %= mod; long long V2 = 0; for (int i = 1; i <= N; i++) { long long E1 = ncr(N, i); long long E2 = modpow(3, N - i, mod); long long E3 = (E2 + mod - 1) % mod; E2 = modpow(E2, N, mod); E3 = modpow(E3, N, mod); if (i % 2 == 1) V2 += E1 * (E2 - E3 + mod); if (i % 2 == 0) V2 -= E1 * (E2 - E3 + mod); while (V2 < 0) V2 += mod * mod; V2 %= mod; } V2 *= 3LL; V2 %= mod; cout << (V1 - V2 + mod) % mod << endl; return 0; } |
#include <bits/stdc++.h> using namespace std; const long double pi = 4 * atan((long double)1); const long long mod = 1e9 + 7; const long long inf = 922337203685477; const long long nax = 1e5 + 5; long long n, p, m; long long d[nax], t[nax]; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> n >> p >> m; for (long long i = 1; i <= n; i++) { cin >> d[i] >> t[i]; } d[0] = 1; d[n + 1] = m + 1; long long cur = 0, ans = 0; for (long long i = 1; i <= n + 1; i++) { long long dif = 0; if (cur > 0) { dif = cur / p; } long long minus = d[i] - d[i - 1] - dif; if (minus < 0) { minus = 0; } ans += minus; cur -= (d[i] - d[i - 1]) * p; cur += t[i]; } cout << ans << n ; } |
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; const int SIZ_TREE = 3e5 + 10; int n, m; struct Node { int u, v; Node(int U = 0, int V = 0) { u = U, v = V; if (u < v) swap(u, v); } bool operator<(const Node A) const { if (u < A.u || (u == A.u && v < A.v)) return true; return false; } }; vector<int> f[N], ans[2]; vector<Node> edg; map<Node, bool> col; bool v[N], opr[N], flag1, flag2, add[N]; int cnt_p, cnt_opr; void init() { char s; int x, y; scanf( %d %d , &n, &m); for (int i = 1; i <= m; i++) { scanf( %d %d , &x, &y); while ((s = getchar()) == ) ; f[y].push_back(x); f[x].push_back(y); edg.push_back(Node(x, y)); col[Node(x, y)] = (s == R ? false : true); } } bool dfs(int x) { v[x] = true; cnt_p++; cnt_opr += opr[x]; for (int i = 0; i < f[x].size(); i++) { int y = f[x][i]; if (v[y]) { if ((col[Node(x, y)] ^ opr[x] ^ opr[y]) == true) return false; } else { opr[y] = col[Node(x, y)] ^ opr[x]; if (!dfs(y)) return false; } } return true; } void add_ans(int x, bool s1, int s2) { if (add[x]) return; opr[x] ^= s1; add[x] = true; if (opr[x]) ans[s2].push_back(x); for (int i = 0; i < f[x].size(); i++) add_ans(f[x][i], s1, s2); } bool solve(int sign) { memset(opr, 0, sizeof(opr)); memset(v, 0, sizeof(v)); memset(add, 0, sizeof(add)); for (int i = 1; i <= n; i++) if (!v[i]) { cnt_opr = cnt_p = 0; if (!dfs(i)) return false; add_ans(i, (cnt_opr * 2 > cnt_p), sign); } return true; } void print(int s) { printf( %d n , ans[s].size()); for (int i = 0; i < ans[s].size(); i++) printf( %d , ans[s][i]); printf( n ); } void work() { flag1 = solve(0); for (int i = 0; i < edg.size(); i++) col[edg[i]] = (!col[edg[i]]); flag2 = solve(1); if (!flag1 && !flag2) printf( -1 n ); else if (flag1 && !flag2) print(0); else if (!flag1 && flag2) print(1); else if (ans[0].size() < ans[1].size()) print(0); else print(1); } int main() { init(); work(); return 0; } |
#include <bits/stdc++.h> using namespace std; const int MOD = 1e6 + 3; long long power(long long base, long long exp) { long long ans = 1; while (exp) { if (exp & 1) ans = (ans * base) % MOD; base = (base * base) % MOD; exp >>= 1; } return ans; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); long long n, k; cin >> n >> k; if (n <= 63 && k > (1LL << n)) { cout << 1 << << 1; return 0; } long long v2 = 0; int digits = __builtin_popcountll(k - 1); v2 = k - 1 - digits; long long ntmp = n % (MOD - 1); if (ntmp < 0) ntmp += (MOD - 1); long long ktmp = k % (MOD - 1); if (ktmp < 0) ktmp += (MOD - 1); long long v2tmp = v2 % (MOD - 1); if (v2tmp < 0) v2tmp += (MOD - 1); long long exponent = ntmp * (ktmp - 1) - v2tmp; exponent %= (MOD - 1); if (exponent < 0) exponent += MOD - 1; long long denom = power(2, exponent); long long numpart = 0; if (k - 1 >= MOD) { numpart = 0; } else { long long prod = 1; long long ntmp2 = power(2, ntmp); prod = power(2, v2tmp); prod = power(prod, MOD - 2); if (prod < 0) prod += MOD; for (long long y = 1; y <= k - 1; y++) { prod = (prod * (ntmp2 - y)) % MOD; } numpart = prod; } long long num = (denom - numpart) % MOD; num %= MOD; denom %= MOD; if (num < 0) num += MOD; if (denom < 0) denom += MOD; cout << num << << denom; return 0; } |
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ; long long n, k, i; cin >> n >> k; vector<pair<long long, long long> > v; long long a[n], b[n]; long long x, y; for (i = 0; i < n; i++) cin >> a[i]; for (i = 0; i < n; i++) cin >> b[i]; for (i = 0; i < n; i++) { x = a[i] - b[i]; v.push_back(make_pair(x, i)); } sort(v.begin(), v.end()); i = 0; y = 0; while (i < n) { if (i < k || v[i].first <= 0) y = y + a[v[i].second]; else if (i >= k && v[i].first > 0) break; ++i; } while (i < n) { y = y + b[v[i].second]; ++i; } cout << y; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.