package test1; public class Answer { public static void main(String[] args) { // TODO Auto-generated method stub int count_happyday = 0; for(int month=1; month<13; month++){ //28日までの計算 for(int day10=0; day10<=2; day10++){ for(int day1=0; day1<=9; day1++){ if(month == day10 + day1){ count_happyday++; } } } } //30日は3月 count_happyday++; //31日は4月だが該当なし System.out.print(count_happyday); } }