THINKING - Strange Pattern (bugged)
Really makes you think
#include <stdio.h>
int count(int t){
return edit this part;
}
int main(i){for(i=1;i<<0b10000;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
you must not use any emoji on the edited part, especially not thinking emoji. Space is probably not ok because judge uses scanf %s
Input
No input.
Output
1 2
2 3
3 3
4 3
... and so on ...
65534 3
65535 3
65536 3
hide comments
Andy:
2018-08-02 14:25:05
@vilimL you got real compilation error. You can tell by hovering over the 'compilation error' text on the result page. |
|
VilimL:
2018-07-05 23:22:50
What is the constraint on the edited part? It's definitely not just no emoji or spaces. |
Added by: | Andy |
Date: | 2018-02-16 |
Time limit: | 1s |
Source limit: | 250B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | C |
Resource: | own problem |