카페검색 본문
카페글 본문
-
JAVA D_test 03 2019.12.31해당카페글 미리보기
int gcd(int max,int min){ if(min==0) return max; else return gcd(min,max%min); } } public class JAVA_d3 { public static void main(String[] args){ Scanner in=new Scanner(System.in); int a,b; a=in.nextInt(); b=in.nextInt(); Ad3 recall=new...
-
JAVA D_test dd5 2019.12.31해당카페글 미리보기
return; else { System.out.printf("%d * %d = %d ", n,m,n*m); re_gugudan(n,m+1); } } } public class JAVA_dd5 { public static void main(String[] args){ Scanner in=new Scanner(System.in); int a; dd5 re = new dd5(); a=in.nextInt(); re.re...
-
JAVA D_test dd7 2019.12.31해당카페글 미리보기
0,k; int sum(int n){ if(n==0) return result; k=n%10; result+=k; return sum(n/10); } } public class JAVA_dd7 { public static void main(String[] args){ Scanner in= new Scanner(System.in); int m; m=in.nextInt(); dd7 re= new dd7(); System...
-
JAVA D_test 02 2019.12.31해당카페글 미리보기
Ad2{ int sum=0; int resum(int m){ sum+=m; if(m>=2) return resum(m-1); else return 0; } } public class JAVA_d2 { public static void main(String[] args){ Scanner in= new Scanner(System.in); int n; n=in.nextInt(); Ad2 recall= new Ad2...
-
JAVA3_test_20 2019.12.13해당카페글 미리보기
import java.util.Scanner; public class JAVA_3t20 { public static void main(String[] args){ Scanner in =new Scanner(System.in); int n,min,max,i,j,k,a,b,c,d; n=in.nextInt(); k=in.nextInt(); min=max=k; a=b=c=d=1; for(i=1;i<=n;i++){ for(j=1...
-
Spider silk 2022.10.09해당카페글 미리보기
to test spin very small volumes of unspun fibre[75][76] but setup and development costs are likely to be high. A patent has been granted in this area for spinning fibres in a method mimicking the process found in nature, and fibres are...
-
D_종합 test_7 2020.01.31해당카페글 미리보기
import java.util.Scanner; public class JAVA_dg7 { public static void main(String[] args){ Scanner in=new Scanner(System.in); int n,m,i,j,k; int a[]=new int [6]; n=in.nextInt(); for(i=1;i<=n;i++){ a[i]=in.nextInt(); } for(i=1;i<=n;i...
-
JAVA3_test_15 2019.12.13해당카페글 미리보기
import java.util.Scanner; public class JAVA_3t15 { public static void main(String[] args){ Scanner in= new Scanner(System.in); int n,j,i,k,sum=0; System.out.print("n = "); n=in.nextInt(); for(i=1;i<=n;i++){ for(j=1;j<=i/2;j++){ if(i%j==0...
-
D_종합 test_10 2020.01.31해당카페글 미리보기
import java.util.Scanner; public class JAVA_dg10 { public static void main(String[] args){ Scanner in= new Scanner(System.in); int n,m,i,j,k,loc=1,sum=0,a,b; n=in.nextInt(); k=in.nextInt(); for(i=1;i<=k;i++){ m=in.nextInt(); if (m>loc...
-
JAVA D_test01 2019.12.31해당카페글 미리보기
int m){ System.out.printf("%d ", m); if(m>=2) return call(m-1); else return 0; } } public class JAVA_d1 { public static void main(String[] args){ Scanner in=new Scanner(System.in); int n; Ad1 recall=new Ad1(); n=in.nextInt(); recall.call...