This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🌞 Morning 7 commits ▌░░░░░░░░░░░░░░░░░░░░ 2.4% | |
🌆 Daytime 93 commits ██████▊░░░░░░░░░░░░░░ 32.5% | |
🌃 Evening 119 commits ████████▋░░░░░░░░░░░░ 41.6% | |
🌙 Night 67 commits ████▉░░░░░░░░░░░░░░░░ 23.4% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MAX 1000 | |
#include <iostream> | |
using namespace std; | |
void func(){ | |
int cost[MAX] = {0,}, sum[MAX] = {0,}; // 대여 비용 저장 배열, 부분합 저장 배열 | |
int avail = 0, checked = 0; // 테스트 케이스 수, 대여 가능한 날 수, 이미 섭외한 공연팀 수 | |
double temp = 0, avg = 0; | |
cin >> avail >> checked; // 대여 가능한 날 수, 이미 섭외한 공연팀 수 read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(void){ | |
int input = 0, result = 1; | |
cin >> input; | |
for(int i = 1; i <= input; i++){ | |
result *= i; | |
} | |
cout << result << endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(void){ | |
int N = 0, count = 0, a = 0, b = 0, c = 0; | |
cin >> N; | |
if(N < 100){ | |
cout << N << endl; | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
bool check(int num); // 입력된 숫자가 한수인지 여부 확인 | |
int main(void){ | |
int N = 0, count = 0; | |
cin >> N; | |
for(int i = 1; i <= N; ++i){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MAX 10001 | |
#include <iostream> | |
using namespace std; | |
int d(int n); // n과 n의 각 자리수 더하는 함수 | |
int main(void){ | |
int arr[MAX] = {0,}; // 크기가 10001인 배열을 0으로 초기화 | |
/***************** 모든 생성자를 1로 설정 *****************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
using namespace std; | |
long long sum(vector<int> &a) { | |
long long ans = 0; | |
for(vector<int>::iterator itr = a.begin(); itr != a.end(); itr++){ | |
ans += *itr; | |
} | |
return ans; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(void){ | |
int arr[1000] = {0,}; | |
int cycle = 0, snum = 0, sum = 0, avg = 0; | |
cin >> cycle; | |
for(int i = 0; i < cycle; ++i){ | |
cin >> snum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstring> | |
using namespace std; | |
int main(void){ | |
int num = 0, sum = 0, cnt = 0; | |
char ox[80]; | |
cin >> num; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(void){ | |
const int SIZE = 1000; | |
int num = 0, max = 0; | |
double sum = 0; | |
int arr[SIZE] = {0,}; | |
cin >> num; |
NewerOlder