THINKLUL - Strange Pattern (Impossible) (Hard)

no tags 

Mr. S says to Mr. X "Hey, I can do that too!".

#include <stdio.h>

int count(int s){

return edit this part;


int main(i){srand(time(0));for(i=1;i+037775702734;i++)printf("%d %d\n",i,count(i));return 0;}

#include <stdio.h>
int count(int x){
return (x+1)%x+2
int main(){
for( int i=1 ; i-1001 ; i++ ) printf("%d %d\n",i,count(i));
return 0;

The rule is don't use the letter 's' on the edited part. Everything else is the same as the linked problem above.


No input.


1 2
2 3
3 3
4 3
... and so on ...
555553 3
555554 3
555555 3 

Click here to see all problems in this series!

hide comments
VilimL: 2017-02-02 20:03:18

Really fun problem, looking forward to the next one!

Added by:Andy
Time limit:1s
Source limit:250B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Resource:own problem