일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Java
- unreal engine4
- Polymorphism
- bool
- dictation
- html
- Unreal
- 알고리즘
- endl
- Project
- std
- Euler
- UE4
- html5
- Notting hill
- 코딩도장
- Bull
- font weight
- CSS
- cout
- 영알남
- 파이선
- 파이썬
- 연결리스트
- cow
- if
- codecademy
- for
- python
- C++
Archives
- Today
- Total
목록Else (2)
ProjectEuler 프로젝트 오일러 10번
10 이하의 소수를 모두 더하면 2 + 3 + 5 + 7 = 17 이 됩니다. 이백만(2,000,000) 이하 소수의 합은 얼마입니까? #include int main() { long long sum = 0; long long num = 1; bool yey = true; while (yey) { num++; for (int i = 2; i = 100000) yey = false; } std::cout
Programming/프로그래밍 문제
2017. 7. 18. 15:56
ProjectEuler 프로젝트 오일러 4번
앞에서부터 읽을 때나 뒤에서부터 읽을 때나 모양이 같은 수를 대칭수(palindrome)라고 부릅니다. 두 자리 수를 곱해 만들 수 있는 대칭수 중 가장 큰 수는 9009 (= 91 × 99) 입니다. 세 자리 수를 곱해 만들 수 있는 가장 큰 대칭수는 얼마입니까? #include int main() { int val = 0; for (int m=999;m>=100;m--) { for (int j = 999; j >= 100; j--) { int i = m*j; int a = i / 100000; int b = (i - a * 100000) / 10000; int c = (i - a * 100000 - b * 10000) / 1000; int d = (i - a * 100000 - b * 10000 - ..
Programming/프로그래밍 문제
2017. 7. 17. 14:45