Timeline for Fixed Repeating Output
Current License: CC BY-SA 4.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 14 at 14:14 | history | edited | Mukundan314 | CC BY-SA 4.0 |
added 152 characters in body
|
Apr 14 at 14:13 | comment | added | Mukundan314 | @None1, Thanks; For future reference users here prefer comments over suggested edits | |
Apr 14 at 14:11 | comment | added | None1 | Yes, but I removed it before you did. | |
Apr 14 at 14:08 | comment | added | Mukundan314 | @None1, I have already removed that | |
Apr 14 at 14:08 | comment | added | None1 | The only space in the program suggested by ayreguitar. | |
Apr 14 at 14:04 | comment | added | Mukundan314 | @None1, Which space do you mean? | |
Apr 14 at 14:02 | comment | added | None1 | The number of characters can be further reduced by removing the space, because any unambiguous output format is allowed | |
S Apr 14 at 14:01 | history | edited | Mukundan314 | CC BY-SA 4.0 |
Reduce 2 characters since any unambiguous output format is allowed (prints 11111 0 when input is 5)
|
S Apr 14 at 14:01 | history | suggested | None1 | CC BY-SA 4.0 |
Reduce 2 characters since any unambiguous output format is allowed (prints 11111 0 when input is 5)
|
Apr 14 at 13:55 | review | Suggested edits | |||
S Apr 14 at 14:01 | |||||
Apr 13 at 11:24 | comment | added | ayreguitar |
Making us of the 'Any unambiguous output format is allowed' in the original post comments, you can shave off 1 byte: print(' 1'*int(input()),0)
|
|
Apr 11 at 5:25 | comment | added | Mukundan314 | @loopywalt Buffering won't cause a problem with the order since python and most other programming languages flush output streams before exiting. | |
Apr 11 at 5:00 | comment | added | loopy walt | I was thinking of the exit code. OP seems to suggest something like that may be allowed. "A program doesn't have to output the 1's and the 0 to the same destination, but it still has to print the 1's first, then the 0." I just was unsure whether buffering might upset the correct order. | |
Apr 11 at 0:43 | comment | added | Mukundan314 |
@loopywalt, I don't see how -u would help implicitly outputting a zero; it seems to be for unbuffering output stream.
|
|
Apr 10 at 16:23 | comment | added | loopy walt |
Not sure about this but could you use python -u and save the 4 bytes for the explicit 0 ?
|
|
Apr 9 at 14:46 | history | edited | Mukundan314 | CC BY-SA 4.0 |
deleted 4 characters in body
|
Apr 9 at 14:12 | history | edited | Mukundan314 | CC BY-SA 4.0 |
added 102 characters in body
|
Apr 9 at 13:59 | history | edited | Mukundan314 | CC BY-SA 4.0 |
added 257 characters in body
|
Apr 9 at 13:25 | history | answered | Mukundan314 | CC BY-SA 4.0 |