전체보기
10069 - Distinct Subsequences
#include using namespace std;int** dTable;int subseq(string str1, string str2);int main(void){ int testCase; cin >> testCase; while (testCase--) { string str1, str2; cin >> str1 >> str2; int ans = subseq(str1, str2); cout
UVA 문제 관련 링크들
UVA 문제 난이도 분석 자료 UVA 문제 분류 1 UVA 문제 분류 2 Programming Challenges(원서 pdf) UVA 문제 추천
Reference 쓰는 방법
* Reference 쓰는 방법 1) 순서 a) Journal Paper Author, title, Journal, Volume, Number, page, Month, Year. b) Conference Paper Author, title, conference-name, place, Year, page. c) 단행본 Author, book-name, 출판사, address, Year. d) 매뉴얼, 표준안 Author, Manual-name, Year. 2) Author 저자는 first name과 second name 사이를 반드시 한 칸 띄어 쓴다. 저자가 2명일 경우에는 A and B 형식으로 쓰고 3명이상일 경우에는 A, B, and C 형식으로 쓴다. -> J. Smith Y. Hussain a..
cout 출력 포맷 설정하기
cout은 ostream의 메서드이며, ostream 클래스는 ios 클래스로부터 상속되고, ios 클래스는 ios_base 클래스로부터 상속된다. ios_base 클래스는 출력 상태를 서술하는 정보를 가지고 있다. 1. 진법 변경 Manipulator를 사용하여 화면에 정수를 출력할 때 사용되는 진법을 제어하며, ios_base의 멤버 함수를 사용하여 필드 폭과 소수점 아래 자릿수를 제어할 수 있다. 즉, hex(cout)과 같은 함수 호출은 cout 객체의 수치 출력을 16진수로 설정하며, 다른 진법으로 다시 설정될 때 까지 모든 정수들을 16진법으로 출력한다. 또한 cout