/******************************************************* * Copyright (C) 2015 Haotian Wu * * This file is the solution to the question: * https://www.hackerrank.com/challenges/countingsort1 * * Redistribution and use in source and binary forms are permitted. *******************************************************/ #include #include #include #include #include #include #include using namespace std; // Externsion to previous question. int main() { int n,x; int count[100]; memset(count,0,sizeof(count)); scanf("%d",&n); for (int i=0;i