ABC-238-Tutorial
Atcoder Beginer Contest 238 By xiaruize Problem Data Tutorial A - Exponential or Quadratic Method 当n≥4n \geq 4n≥4或n=1n=1n=1时,输出YesYesYes 否则输出NoNoNo Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138// Problem: A - ...
CodeforcesRound#768(Div.2)
Codeforces Round #768 (Div. 2) By xiaruize A. Min Max Swap Method 对于1≤i≤n1\leq i\leq n1≤i≤n,若ai>bia_i>b_iai​>bi​,则swap(ai,bi)swap(a_i,b_i)swap(ai​,bi​) ###Code 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889// Problem: A. Min Max Swap// Contest: Codeforces - Codeforces Round #768 (Div. 2)// URL: https://codeforces.com/contest/1631/problem/0// Memory Limit: 256 M ...
ABC 236 Tutorial
Atcoder Beginner Contest 236 By xiaruize 2022年1月23日 A - chukodai Method & Code 12345678910111213#include<bits/stdc++.h>using namespace std;int main(){ string s; cin>>s; int a,b; cin>>a>>b; swap(s[a-1],s[b-1]); cout<<s<<endl; return 0;} B - Who is missing? Method & Code 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364#include <iostream>#include <i ...
ABC 235 Tutorial
Atcoder Beginner Contest 235 By xiaruize 2022年1月20日 A - Rotate Method 显而易见,ans=111(a+b+c)显而易见,ans=111(a+b+c)显而易见,ans=111(a+b+c) Code 123456789101112131415161718192021222324252627282930313233343536373839#include<bits/stdc++.h>using namespace std;#define int long long#define ull unsigned long long#define MOD 1000000007#define ALL(a) (a).begin(), (a).end()#define pb push_back#define mk make_pair#define pii pair<int, int>#define pis pair<int, string>#define sec second#define l ...
Good Things
Thing To Use By xiaruize Useful Websites #Graph Editor #Diff Tool #Geometry Widget #CPlusPlus #OEIS #Igfonts #Codeforces Visualizer #Atcoder Performances #Encode&Decode #Atcoder Problems #Alogorithm Visualizer #Compiler Online #Data Structure Visualizations #VISUALGO #文言( #PCL
作者信息
Announcement
Hi! This is xiaruize's Blog