USACO Bronze 2018 January - Out of Place

Author: Maggie Liu

Official Analysis

C++

Implementation

#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
freopen("outofplace.in", "r", stdin);
freopen("outofplace.out", "w", stdout);
int n;

Join the USACO Forum!

Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!