fork download
  1. using System;
  2. public class Test
  3. {
  4. public static void Main()
  5. {
  6. int ile;
  7. int n, x, y;
  8. ile = Convert.ToInt32(Console.ReadLine());
  9. for (int i = 1; i <= ile; i++)
  10. {
  11. n = Convert.ToInt32(Console.ReadLine());
  12. x = Convert.ToInt32(Console.ReadLine());
  13. y = Convert.ToInt32(Console.ReadLine());
  14. for (int j = 1; j < n; j++)
  15. {
  16. if (j % x == 0 && j % y != 0)
  17. {
  18. Console.Write(j + " ");
  19. }
  20. }
  21. Console.WriteLine();
  22. }
  23. }
  24. }
Runtime error #stdin #stdout #stderr 0.01s 135168KB
stdin
4
35 5 12
7 2 4
35 5 12
7 2 4
stdout
Standard output is empty
stderr
Unhandled Exception:
System.FormatException: Input string was not in a correct format.
  at System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x0005e] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00014] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00008] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000e] in <8f2c484307284b51944a1a13a14c0266>:0 
  at Test.Main () [0x00018] in <feef954bcf9d4c32af2b5ef79b8f9654>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.FormatException: Input string was not in a correct format.
  at System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x0005e] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00014] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00008] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000e] in <8f2c484307284b51944a1a13a14c0266>:0 
  at Test.Main () [0x00018] in <feef954bcf9d4c32af2b5ef79b8f9654>:0