fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int n;
  8. while ((n = int.Parse(Console.ReadLine()))!=42)
  9. Console.WriteLine(n);
  10.  
  11. string prodCode = @"PCF-CS-75X1-1/2""";
  12. string photo = "Fish PP Compression Clamp Saddle_PCF-CS-50X1_PCF-CS-50X1@2_PCF-CS-50X3@4_PCF-CS-63X1_PCF-CS-75X1-1@2.png";
  13.  
  14. if (photo.Contains(prodCode.Replace(@"""", "").Replace("/", "@"))) {
  15. Console.WriteLine("Yes");
  16. } else {
  17. Console.WriteLine("No");
  18. }
  19.  
  20. }
  21. }
  22.  
Success #stdin #stdout 0.05s 30192KB
stdin
1
2
3
42
10
stdout
1
2
3
Yes