Created
November 21, 2010 20:14
-
-
Save anisaraf/709104 to your computer and use it in GitHub Desktop.
SOlution to SRM488 TheBoredomDivTwo
This file contains 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; | |
class TheBoredomDivTwo { | |
public: | |
int find(int n, int m, int j, int b); | |
}; | |
int TheBoredomDivTwo::find(int n, int m,int j, int b){ | |
return n + (j > n ) + (b > n) ; | |
} | |
int main () { | |
TheBoredomDivTwo c; | |
cout<<c.find(4,7,7,4); | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment