Submit | All submissions | Best solutions | Back to list |
THINKLUL - Strange Pattern (Impossible) (Hard) |
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;
}M
The rule is don't use the letter 's' on the edited part. Everything else is the same as the linked problem above.
Input
No input.
Output
1 2
2 3
3 3
4 3
... and so on ...
555553 3
555554 3
555555 3
Added by: | Andy |
Date: | 2016-09-04 |
Time limit: | 1s |
Source limit: | 250B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | C |
Resource: | own problem |