// 1294
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String sentence = input.nextLine();
String printThis = "";
for(int i=0; i<sentence.length(); i++)
{
int addThis = (int) (sentence.charAt(i));
if(sentence.substring(i, i+1).equals(" "))
System.out.print(" ");
else if(sentence.substring(i, i+1).equals("x"))
System.out.print("a");
else if(sentence.substring(i, i+1).equals("y"))
System.out.print("b");
else if(sentence.substring(i, i+1).equals("z"))
System.out.print("c");
else
{
addThis += 3;
printThis += (char) addThis ;
System.out.print(printThis);
printThis = "";
}
}
}
}
// 1675
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String sentence = input.nextLine();
String printThis = "";
for(int i=0; i<sentence.length(); i++)
{
int addThis = (int) (sentence.charAt(i));
if(sentence.substring(i, i+1).equals(" "))
System.out.print(" ");
else if(sentence.substring(i, i+1).equals("a"))
System.out.print("x");
else if(sentence.substring(i, i+1).equals("b"))
System.out.print("y");
else if(sentence.substring(i, i+1).equals("c"))
System.out.print("z");
else
{
addThis -= 3;
printThis += (char) addThis ;
System.out.print(printThis);
printThis = "";
}
}
}
}
// 1760
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String sentence = input.nextLine();
String printThis = "";
int translate = 0;
String putin = input.nextLine();
for(int i=0; i<putin.length(); i++)
{
String wowie = putin.substring(i, i+1);
if(wowie.equals(" "))
System.out.print(" ");
else
{
translate = sentence.indexOf(wowie);
System.out.print(translate);
}
}
}
}
// 4011 UNFINISHED
public class Main
{
public static void main(String[] args)
{
int digits = 6;
int numbers = 0;
int d = 0;
for(int i = 0; i < digits; i++)
{
numbers += ((int) (Math.random()*10) + 1) * Math.pow(10, i);
}
System.out.println(numbers);
}
}
top of page
실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
수정: 11월 20일
20241120
20241120
댓글 0개
좋아요
댓글(0)
bottom of page