블로그
- 프로그래머스 LEVEL.1 자릿수 더하기 #include using namespace std; int solution(int n) { int answer = 0; for(int i=0;;i++){ answer+= n%10 실행] 버튼을 누르면 출력 값을 볼 수 있습니다. cout << "Hello Cpp" << endl; return answer; } 또는 #include using
- 프로그래머스 LEVEL.1 자연수 뒤집어 배열로 만들기 예를들어 n이 12345이면 [5,4,3,2,1]을 리턴합니다. nㅇ #include #include using namespace std; vector solution(long
- 프로그래머스 LEVEL.1 이상한 문자 만들기 / 대소문자 변환 #include #include #include using namespace std; string solution(string s) { int range = s.size();
- 프로그래머스 LEVEL.2 다음 큰 숫자 #include #include using namespace std; int BinaryMethod(int m){ int p=0; for(int i=0;0
- 프로그래머스 LEVEL.1 같은 숫자는 싫어 #include #include using namespace std; vector solution(vector arr) { vector
- C# 간단한 윈도우 폼 System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ConsoleWindow { public class MainWindow : Form { public MainWindow()
- 시간 (DATE) 관련 특정일까지 남은 timestamp를 계산한다. using System; using System.Collections.Generic; using System.Linq; using System.Text ; using System.Threading.Tasks; namespace Test_Ex_Date { class Program { static void Main(string[] args
- [STL] vector deque list #include 5 #include 6 #include //copy 7 #include //EXIT_SUCCESS 8 #include //setw , left 9 10 using namespace std; 11 12 //컨테이너 내용을 출력합니다. 13 //여러 타입에 사용할 수.......
- [STL] Set 메소드 Set의 사용 - 헤더 파일 #include using namespace std; - 형(type) set< 자료형 > 변수명.......
- [STL] Bitset www.cppreference.com/wiki/stl/bitset/start 간단하게 선언하고 출력을 하는 예입니다. 1 #include 2 #include 3 #include 4 #include 5 6 using namespace std;.......