Search found 17 matches
- 9 years ago
- Forum: Other languages
- Topic: C#
- Replies: 20
- Views: 22620
- Gender:

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.
- 9 years ago
- Forum: Other languages
- Topic: C#
- Replies: 20
- Views: 22620
- Gender:

Re: C#
Very good, now im going to use that...
- 9 years ago
- Forum: Other languages
- Topic: C#
- Replies: 20
- Views: 22620
- Gender:

Re: C#
Another question, how can i use Comparison for sort a list?
- 9 years ago
- Forum: Other languages
- Topic: C#
- Replies: 20
- Views: 22620
- Gender:

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.
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.
- 9 years ago
- Forum: Other languages
- Topic: C#
- Replies: 20
- Views: 22620
- Gender:

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.
- 9 years ago
- Forum: Problem set
- Topic: 1851 - Bridge Coverage Systems
- Replies: 3
- Views: 1614
- Gender:

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 ...
- 9 years ago
- Forum: Other languages
- Topic: C#
- Replies: 20
- Views: 22620
- Gender:

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...
- 9 years ago
- Forum: Problem set
- Topic: 1382 - Sum of Cubes
- Replies: 2
- Views: 1003
- Gender:

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...
- 9 years ago
- Forum: Problem set
- Topic: 1566 - Cannon Balls
- Replies: 3
- Views: 2142
- Gender:

Re: 1566 - Cannon Balls
Thanks a lot i resolve my error.
- 9 years ago
- Forum: Other languages
- Topic: C#
- Replies: 20
- Views: 22620
- Gender:

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??
Well, can any boy explain me what for 1 1000000000000000000 the result is 441??