|
|
вернуться в форумНе понимаю в чем проблема. Пишет Runtime Error Послано Roman 14 апр 2023 21:34 import java.util.Scanner; public class Task_2100 { public static void main(String[] args){ Scanner scr1 = new Scanner(System.in); Scanner scr2 = new Scanner(System.in); int n, counter; n = scr1.nextInt(); counter = n+2; while(n-- > 0){ String guest = scr2.nextLine(); String substring = "+"; if(guest.contains(substring)){ counter++; } } if(counter==13) { counter++; } System.out.print(counter*100); } } |
|
|