ice_tea

Untitled

Sep 4th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7.  
  8. namespace ConsoleApp1
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. List<int> ar = new List<int>();
  15. ar.Clear();
  16. ar.Add(10);
  17. ar.Add(20);
  18. Console.WriteLine(ar.Count());
  19. for (int i = 0; i < ar.Count(); ++i)
  20. {
  21. Console.WriteLine(ar[i]);
  22. }
  23. long a = 10;
  24. SortedSet<long> mas = new SortedSet<long>();
  25. mas.Clear();
  26. mas.Add(135);
  27. mas.Add(136);
  28. mas.Add(1287129847111111);
  29. mas.Add(135);
  30. Console.WriteLine(mas.Count());
  31. foreach (int i in mas)
  32. {
  33. Console.WriteLine(i);
  34. }
  35. }
  36. }
  37. }
Add Comment
Please, Sign In to add comment