Created
October 28, 2011 18:53
-
-
Save resure/1323069 to your computer and use it in GitHub Desktop.
5x5.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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