public class Main {
public static void main(String args[]) {
System.out.println("Hello World!");
}
}
(출처 : https://www.acmicpc.net/problem/2557)
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
int A,B,addresult;
Scanner scn=new Scanner(System.in);
A=scn.nextInt();
B=scn.nextInt();
addresult=A+B;
System.out.println(addresult);
}
}
(출처 : https://www.acmicpc.net/problem/1000)
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
while(sc.hasNext())
{System.out.println(sc.nextLine());
}
}
}
(출처 : https://www.acmicpc.net/problem/11718)
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn=new Scanner(System.in);
int A=scn.nextInt();
int B=scn.nextInt();
int C=scn.nextInt();
System.out.println((A+B)%C);
System.out.println((A%C+B%C)%C);
System.out.println((A*B)%C);
System.out.println((A%C*B%C)%C);
}
}