Search found 1 match

by ashik!!
Tue Mar 29, 2016 3:27 am
Forum: Volume 106 (10600-10699)
Topic: 10696 - f91
Replies: 21
Views: 9692

Re: 10696 - f91

Hello I've got WA, Why? Here is my solution #include <iostream> #include<bits/stdc++.h> using namespace std; int f91(int x) { int a=x; int count=0; if(a>=101) { a=a-10; return a; } else { count++; a=f91(f91(a+11)); if(a==x&&count==0) return a; } } int main() { int n; for(int i=0; i<25000; i++) { sc...

Go to advanced search