VioletaBabel
12345678910111213141516171819202122232425#include#includeusing namespace std;int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int n, clusterSize; long long int result = 0; vector fileSize; cin >> n; for (int i = n, temp; i--; fileSize.push_back(temp)) cin >> temp; cin >> clusterSize; for (int i = 0; i
클래스는 데이터(멤버 변수), 함수(메서드, 멤버 함수), 타입 정의, 포함된 다른 클래스 등을 가질 수 있다. 1. friend12345678910111213141516171819202122232425262728293031323334353637#includeusing namespace std; class one{public: one() { num = 100; } friend class two; void showNum() { cout
1. 변수기본 타입은 내장 타입(Intrinsic Type)이라고 한다. 12345678910111213#includeusing namespace std;int main(){ int i1 = 2; // i1 = 2 int i2, i3 = 5; // i2는 초기화 되지 않음, i3 = 5 float pi = 3.14159; // pi = 3.14159 double x = -1.5e6; // x = -1.5e+06 = -1500000 double y = -1.5e-6; // y = -1.5e-06 = -0.0000015 char c1 = 'a', c2 = 35; // c1 = a, c2 = # bool cmp = i1
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816..
1234567891011121314151617181920212223242526272829303132333435#includeint main(){ int price1[6] = { 5000000,3000000,2000000,500000,300000,100000 }, t, a, b, res = 0; for (scanf("%d", &t); t--; printf("%d\n", res)) { res = 0; scanf("%d %d", &a, &b); if (a > 0) { for (int i = 0; ++i
123456789101112131415161718192021222324252627#include#includeusing namespace std;int main(){ string oct; cin >> oct; if (oct == "0") { cout
123456789101112131415161718192021222324252627282930#includeusing namespace std;int LCM(int a, int b){ int t = a * b; for (int temp; a%b != 0; b = temp % b) { temp = a; a = b; } return t / b;}int main(){ int num[5]; int best = 1000000; for (int i = 5; i--; scanf("%d", num + i)); for (int i = 0; i
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110#includeusing namespace std; struct node{ node* prev; node* next; int value;}; class CircleList{private: node head;public: void Add(int i); void Remove(int i); void LinkNewNode..
[강연] 혼자서 성장하기 - 업계 동향 파악 : 개발자 커뮤니티 눈팅게임코디 (현업자만 가입 가능)스마트폰게임개발자그룹 (페이스북 그룹, 홍보가 많다)안드로이드펍유니티허브 카페인디개발자쉼터(인디터)인디라 페이스북 그룹생활코딩유니티 코리아 페이스북okky - 개발자모임다른 개발사에 근무하고 있는 지인들과의 만남인디라등 오프라인 만남 - 유튜브 등 동영상유튜브에 키워드를 치면 요즘은 많이들 나옴. - 코드 리뷰git 사용 현황 확인(commit, merge 현황)현재 작업중인 사항에 대해 논의
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657#include#includeusing namespace std;int checkQueue(queue *q, queue *gacha);void reverseQueue(queue *q);int main(){ queue q1, q2, gachaNumbers; int qSize, gachaCount, result = 0; scanf("%d %d", &qSize, &gachaCount); for (int i = 0; i