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!
Remember that a human can very easily solve this task, so make sure that no human traitors are helping the Cybermen complete this task. Input The first line contains an integer kk (1≤k≤41≤k≤4), the number of rings. The second line contains an integer nn (100≤n≤1000100≤n≤1000...
voidsolve(){in(a,b) ;if(a == b)returnout(' ',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') ; } B. Customising the TrackB. Customising the Track ...
leetcode-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)...
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. ...
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') ; }
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...
void solve(){ int n,l,r;cin>>n>>l>>r; priority_queue<int>a; priority_queue<int,vector<int>,greater<int>>lmn,rmn; int ans=0; for(int i=1;i<=n;i++){ int x;cin>>x; if(i>=l&&i<=r){ ans+=x; a.push(x); } else if(i<l) lmn.push(x); else rmn.push(x); }...
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...
#include<cstdio>#include<cstring>#defineLLlonglongLLsolve(LL a,LL b){if(b==1)returna;if(a%b==0)returna/b;//開始忘了考虑整除。RE on test #7returnsolve(b,a%b)+(a/b);}intmain(){// freopen("in.txt", "r", stdin);LL a,b;while(scanf("%lld%lld",&a,&b)==2){printf(...