AtCoder Beginner Contest 278


AtCoder Beginner Contest 278

A - Shift A - Shift AtCoder is a programming contest site for anyone from beginners to experts. We hold weekly programming contests online. atcoder.jp K번째 idx부터 N번째까지 출력 한 후 K > N임을 고려해, min(K, N)의 0을 출력한다. queue를 써도 된다. #include <iostream> #include <algorithm> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef tuple<int, int, int> tii; const int MAX = 105; int N, K, A[MAX]; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); c...



원문링크 : AtCoder Beginner Contest 278