Startup and Tech
Friday, 31 July 2020
Codeforces 110A Solution - Nearly Lucky Number 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(); int f=0; char c[] = s.toCharArray(); for(int i=0;i
0) { if(f==4 || f==7 || f==47 || f==74) { System.out.println("YES"); } else { System.out.println("NO"); } } else { System.out.println("NO"); } } }
Output
I/P : 40047 O/P : NO
Codeforces 617A Solution - Elephant Solution In Java
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment