Skip to content

Instantly share code, notes, and snippets.

@resure
Created October 28, 2011 18:53
Show Gist options
  • Save resure/1323069 to your computer and use it in GitHub Desktop.
Save resure/1323069 to your computer and use it in GitHub Desktop.
5x5.cpp
#include <iostream>
using namespace std;
int main(){
int a, b;
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
cin >> a;
b = a/10;
if(a==5)
cout << 25;
else
cout << b*(b+1) << 25;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment