Skip to content

Instantly share code, notes, and snippets.

@anisaraf
Created November 21, 2010 20:14
Show Gist options
  • Save anisaraf/709104 to your computer and use it in GitHub Desktop.
Save anisaraf/709104 to your computer and use it in GitHub Desktop.
SOlution to SRM488 TheBoredomDivTwo
#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