Startup and Tech
Friday 24 July 2020
Codeforces 96A Solution - Football Problem Solution In Java
Program
import java.util.*; public class x { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); if(s.contains("1111111")||s.contains("0000000")) { System.out.println("YES"); } else { System.out.println("NO"); } } }
Output
I/P: 001001 O/P: NO
Codeforces 281A Solution - Word Capitalization Solution In Java
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment