salehin_076923→An Interesting Mathematical Interactive Problem IceKnight1093→Invitation to CodeChef Starters 187 (Rated till 6-Stars) — 21st May Kuroni→VNOI Cup 2025 shivankjha46→MEX sequence problem (my own problem) — Try to solve!
I have been trying to solve DIV2 C's for a long time and yes i do solve them ,but miss them by like 10-20 minutes.**Any suggestions on what can i do to improve timing and the rating range so that i can solve 30% of them**. Thank You....
voidsolve(){longlongsum =0;in(n) ;for(inti =1; i <= n; ++i) {longlongx ;in(x),sum += x ; }constlonglongvalue1 = sum % n,value2 = n - value1 ;out('\n',value1 * value2) ; } C. Need for Pink SlipsC. Need for Pink Slips ...
In each round, your program needs to read one line containing a single integerpi(1 ≤ pi ≤ c), indicating the number given to Chtholly. Your program should then output a line containing an integer between1 andn, indicating the number of sheet to write down this number in. Afte...
use rustc source code to solve leetcodeleetcode-rust package require rustc_private feature to enable rustc relative APIe.g. use rustc_span::lev_distance::lev_distance(&a, &b) one line to solve leetcode edit-distance (Unfortunately we can't use nightly and rustc-dev in leetcode)...
One day Vasya was sitting on a not so interesting Maths lesson and making an origami from a rectangularamm × bmm sheet of paper (a > b). Usually the first step in making an origami is making a square piece of paper from the rectangular sheet by folding the sheet along the...
最终答案就是两个点度数和-2+最开始的联通量(1) void solve(){ int n;cin>>n; vector<int>de1; vector<vector<int>>g(n+1); vector<int>in(n+1); priority_queue<array<int,2>>pq; for(int i=0;i<n-1;i++){ int u,v;cin>>u>>v; g[u].push_back(v);g[v].push_back(u); ...
void solve() { in(a,b) ; if (a == b) return out(' ',0,0),fastio::putc('\n'),void(); if (a < b) std::swap(a,b) ; c = a - b ; out(' ',c,min(b % c,c - b % c)) ; fastio::putc('\n') ; }
OmegaC 11 months ago, # ^ | 0 You can fill in the color against the excel sheet and then scan it with your phone. XD → Reply dpaleka 11 months ago, # ^ | +8 I thought the task was to submit a QR decoder and managed to adapt some QR reader repo (that works on im...
One day Vasya was sitting on a not so interesting Maths lesson and making an origami from a rectangularamm × bmm sheet of paper (a > b). Usually the first step in making an origami is making a square piece of paper from the rectangular sheet by folding the sheet along the...