Search found 17 matches

by axlluis
7 years ago
Forum: Other languages
Topic: C#
Replies: 20
Views: 9234
Gender: None specified

Re: C#

Hi phantom, please help me with this, is i have a double value, how many way are to round de value after the ",", for example two decimals.
by axlluis
7 years ago
Forum: Other languages
Topic: C#
Replies: 20
Views: 9234
Gender: None specified

Re: C#

Very good, now im going to use that...
by axlluis
7 years ago
Forum: Other languages
Topic: C#
Replies: 20
Views: 9234
Gender: None specified

Re: C#

Another question, how can i use Comparison for sort a list?
by axlluis
7 years ago
Forum: Other languages
Topic: C#
Replies: 20
Views: 9234
Gender: None specified

Re: C#

thanks bro, help mw with this please, if i have this input:
aaaaa
bbbbb
ccccc
ddddd
eeeee
How , can i get that information , if is not given the amount of lines that you have to read, (ends of file), please write the code to do this.
by axlluis
7 years ago
Forum: Other languages
Topic: C#
Replies: 20
Views: 9234
Gender: None specified

Re: C#

Thanks again phantom for you attetion, i already know that something like that happens, and i copy each element like you, but thats take a lot time, most be there other efficent solution to not get time limited excedeed.
by axlluis
7 years ago
Forum: Problem set
Topic: 1851 - Bridge Coverage Systems
Replies: 3
Views: 729
Gender: None specified

Re: 1851 - Bridge Coverage Systems

whye i received time limited exeded if mi code is simple like this: using System; namespace _1851_Bridge_Coverage_Systems { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] towers = new int[n]; int may = int.MinValue; for (int i = 0; i < n; i++) { int h ...
by axlluis
7 years ago
Forum: Other languages
Topic: C#
Replies: 20
Views: 9234
Gender: None specified

Re: C#

you are right lets talk about c-sharp so, in this code: string[] info = Console.ReadLine().Split(); List<int> lista = new List<int>(); foreach (string x in info) { lista.Add(int.Parse(x)); } lista.Sort(); List<int> l_reverse = lista; l_reverse.Reverse(); Why reverse==lista, what i want is have the s...
by axlluis
7 years ago
Forum: Problem set
Topic: 1382 - Sum of Cubes
Replies: 2
Views: 329
Gender: None specified

Re: 1382 - Sum of Cubes

Hi , i have problems with problems that requires a result MOD -some number - , because i dont understand MOD to well, the user phantom tell me that the MOD is the rest of the division of to numbers, but in this problem for the input 1 1000000000000000000 i aply this thing and give me a negative valu...
by axlluis
7 years ago
Forum: Problem set
Topic: 1566 - Cannon Balls
Replies: 3
Views: 594
Gender: None specified

Re: 1566 - Cannon Balls

Thanks a lot i resolve my error.
by axlluis
7 years ago
Forum: Other languages
Topic: C#
Replies: 20
Views: 9234
Gender: None specified

Re: C#

You have reason, my problem is not in c sharp, but i wrote in the problem set my questions and nobody answer me, and i take the chance that you help me with c sharp for make you this question.
Well, can any boy explain me what for 1 1000000000000000000 the result is 441??

Go to advanced search