/*
// 4011
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String sentence = input.nextLine();
String[] splitted = sentence.split("-");
String first = splitted[0];
String second = splitted[1];
String gender = "";
String birthyear = first.substring(0,2);
String checker = String.valueOf(second.charAt(0));
if(checker.equals("1"))
{
gender = "M";
birthyear = 19 + birthyear;
}
else if(checker.equals("2"))
{
gender = "F";
birthyear = 19 + birthyear;
}
else if(checker.equals("3"))
{
gender = "M";
birthyear = 20 + birthyear;
}
else if(checker.equals("4"))
{
gender = "F";
birthyear = 20 + birthyear;
}
System.out.print(birthyear + "/" + first.charAt(2) + first.charAt(3) + "/"+ first.charAt(4) + first.charAt(5) + " " + gender);
}
}
*/
/*
* 4771
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String allPlates = input.nextLine();
int height = 10;
for(int i = 0; i < allPlates.length()-1; i++)
{
if(allPlates.substring(i, i+1).equals(allPlates.substring(i+1, i+2)))
height += 5;
else
height += 10;
}
System.out.println(height);
}
}
*/
top of page
실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
20241124
20241124
댓글 0개
좋아요
댓글(0)
bottom of page