#include <bits/stdc++.h> using namespace std ; int main ( int argc , char const * argv [ ]) { int n ; cin >> n ; std :: map < int , int > order ; int key ; for ( int i = 2 ; i <= n ; ++ i ) { cin >> key ; order [ key ] = i ; } cout << " 1 " ; for ( int i = 0 ; i < n -1 ; ++ i ) { cout << order [ i ] << " " ; } return 0 ; } Click here for the problem https://open.kattis.com/problems/lostlineup
#include <bits/stdc++.h> using namespace std ; int main ( int argc , char const * argv [ ]) { long x ; cin >> x ; cout . precision ( 10 ) ; cout << sqrt ( x ) * 4 ; return 0 ; } problem link : https://open.kattis.com/problems/areal
Comments
Post a Comment