Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

알고리즘 기초,재귀,math basic UPDATE #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
minkpang merged 1 commit into main from minkpang_mon
Sep 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions 02월 3주차/BOJ_1000/BOJ_1000_박민광.java
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import java.util.Scanner;

public class Main {

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);

int N = sc.nextInt();
int L = sc.nextInt();

System.out.println(N+L);
}
}
13 changes: 13 additions & 0 deletions 02월 3주차/BOJ_1001/BOJ_1001_박민광.java
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import java.util.Scanner;

public class Main {

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);

int N = sc.nextInt();
int L = sc.nextInt();

System.out.println(N-L);
}
}
13 changes: 13 additions & 0 deletions 02월 3주차/BOJ_1008/BOJ_1008_박민광.java
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double a =sc.nextInt();
double b =sc.nextInt();

System.out.println(a/b);

}

}
2 changes: 2 additions & 0 deletions 02월 3주차/BOJ_10718/BOJ_10718_박민광.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
print("강한친구 대한육군")
print("강한친구 대한육군")
11 changes: 11 additions & 0 deletions 02월 3주차/BOJ_2292/BOJ_2292_박민광.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
N = int(input())

temp = 1
i = 1
while(1):
if temp >= N:
break
temp = temp + (6 * i)
i = i + 1

print(i)
14 changes: 14 additions & 0 deletions 02월 3주차/BOJ_2475/BOJ_2475_박민광.java
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import java.util.*;


public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int sum=0;
for(int i=0; i<5; i++) {
int a = sc.nextInt();
sum+=(a*a);
}
System.out.println(sum%10);
}
}
17 changes: 17 additions & 0 deletions 02월 3주차/BOJ_2839/BOJ_2839_박민광.java
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import java.util.Scanner;

public class Main {

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int M = sc.nextInt();

if(M == 4 || M == 7) {
System.out.println(-1);
}
else if(M%5 == 0)System.out.println(M/5);
else if(M%5 == 1 || M%5==3)System.out.println(M/5+1);
else System.out.println(M/5+2);

}
}
4 changes: 4 additions & 0 deletions 02월 3주차/BOJ_2869/BOJ_2869_박민광.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import math
A,B,V = map(int, input().split())

print(math.ceil((V-A)/(A-B))+1)

AltStyle によって変換されたページ (->オリジナル) /