Posts by Rahilly • 164 points
11 posts
-
2
votes1
answer88
viewsA: Space between matrix number
Just put a space after the %d and others of the type inside the quotes of the printf. printf("%d ", .....);
-
0
votes1
answer74
viewsQ: Calling recursive function with decreasing operator
I wrote a code for solving a factor-adding problem. When I created the recursive function for the factorial calculation, I used in the function call the decrease operator -- followed by the number,…
-
-2
votes1
answer96
viewsQ: How to optimize the time of this code?
I created the code below to solve the problem Vault, of the 2017 OBI. It works, but in 60% of cases it exceeds the time limit, as I do to optimize it? #include <iostream> #include…
-
6
votes2
answers165
views -
1
votes1
answer50
viewsQ: Error in solving an OBI problem
I’m trying to solve the problem Wifi of OBI 2018 and I had the idea to create a code that will read and store the coordinates of the rooms and then check if it is "docking" (outside) another room.…
-
2
votes2
answers1132
viewsQ: Change compiler settings in Codeblocks
I will participate in a clear programming and need to configure the compiler, in the case of Codeblocks, in the following ways: C: GCC compiler version 8.2 or higher - Command line: gcc -lm -O2…
-
0
votes1
answer56
viewsQ: Code not working
I’m trying to solve a problem of the site Urionlinejudge (problem link) and I’m getting a mistake like Time limit exceeded, and I’m having trouble identifying the problem. I can imagine that it is…
-
1
votes1
answer155
viewsQ: Time Limit Exceeded
I wrote the code below to solve the problem 1112 from the site Urionlinejudge and apparently the logic employed is perfect, but I’m getting an error of time exceeded. I’m having trouble identifying…
-
-1
votes2
answers144
viewsQ: Operation of function scanf()
Can anyone explain to me how the function scanf() works? Not the basic, but how does the mechanism it has to return the number of arguments that were read. To whom does it return? Why does it…
-
1
votes1
answer930
viewsQ: How to end this program with EOF?
I was solving a Urionlinejudge site problem and it was asked for the input to end with EOF. I made the code perfectly, except that I don’t know how to implement the EOF. How can I do it? #include…
-
1
votes1
answer50
viewsQ: Can anyone help me find what is causing a build error in the code?
I went to solve exercise 1022 of Urionlinejudge and received a Compilation error, but the code works perfectly in Code::Blocks. Please inform me of the error. Link to the problem. #include…