WTF?!
I was just pointing out a fact.
You have a problem, buddy!
Type: Posts; User: bruteforce
WTF?!
I was just pointing out a fact.
You have a problem, buddy!
It should be noted that the book apparently neglects to tell people how to signal end-of-file from the keyboard. Although the key-combo is different on different systems, the book doesn't even say...
I like your AI idea better.
Or a brain in a vat, sans brain.
Idiot savant, emphasis on idiot.
Cat on a keyboard.
Noise in a cable.
Indigestion?
Anyone who insists on interacting with him...
Stop feeding the troll.
Just let it die.
He is so obviously a troll. How can you not see that? Why do you keep feeding him? Just let him die.
Clearly it doesn't work for him since he shows no evidence of understanding or learning anything. You are just encouraging him to be lazy and not read a book like a normal human.
"Genius"! Now I've heard everything. You people are crazy.
The "bad quality of screenshots" is due to your bad choice of jpg (a "lossy" format) over png (a "lossless" format). jpg is for natural scenes. png is for images with lots of pixels of exactly the...
I can't believe people still respond to this entity. It's pointless.
It isn't a stylistic choice at all. It is objectively better to return the value when possible. It allows the function to be used more flexibly. E.g.,
switch (getChoice())
{
case 'd':
...
If I understand what you are trying to do, wouldn't it be more like this:
#include <stdio.h>
#include <ctype.h>
int main()
{
enum {OUT, IN};
Post a complete program that demonstrates the problem.
I don't know if anyone else agrees, but it would be better to tell this guy that you won't answer any more strange disconnected questions. He should have to post a full program.
I mean, you could...
How could you know which elements are less than or greater than the already-sorted element unless you compare to it?
Well duh.
I don't understand your logic.
Why is it 1000000 instead of 100000?
Why are you only reading one number into it?
Why is it a char array instead of an int array?
If you were going...
You have some major misunderstandings. You don't need a megabyte character array to read a single integer from 1 to 100000. I'm also assuming that you don't need to read a filename from the command...
Blah blah blah. What a bunch of bull!!!
I see your account was closed on the other site.
Was that the admin (I doubt it) or was it your own cowardice?
You are a loser, literally.
What do you mean "optimizaton needed"? A brute force "solution" isn't a solution in competitive programming at all. A monkey could write that. The whole point is to come up with a clever solution....
We know you're too lazy and/or stupid to properly format your code. No one is going to help you until you do.
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define MAX_ROWS 20
#define MAX_COLS 20
bool recuperation(int t[][MAX_COLS], const char *nomFichier, int *rows, int *cols) {
...
It's usually Feynman who is considered a character. "Lord" Rutherford is the "father of nuclear physics".
The joke here is "search Ernest Rutherford on every article over the Ethernet". Ever...
Excuse you? There is no excuse for you! You sound like a total moron to me, and to most other people here by the looks of it. Try actually writing a program some day!!!
But that would require that he actually writes a program, something I've never see him do! He just asks strange, usually totally obvious, questions.
Guess who has the best time for a C program for this problem? :cool:
15598
I thought I'd finish off the thread with the final code and some timing info from the hackerearth site. These times...
Besides your rather ancient style (leaving "int" off of main and not initializing variables when declaring them) I don't see anything wrong.
How exactly are you running the programs?