Skip to content

Instantly share code, notes, and snippets.

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
ArrayList<Integer> list = new ArrayList<Integer>();
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int[] cnt = {0,31,59,90,120,151,181,212,243,273,304,334,365};
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int change = 0;
String a = sc.nextLine();
for(int i=0; i<a.length(); i++) {
if(i%10==0 &&i!=0) {
change =1;