This file contains hidden or 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 broken[10]; | |
| int possible(int c) { | |
| if (c == 0) { | |
| if (broken[0]) { | |
| return 0; | |
| } | |
| else { | |
| return 1; |
This file contains hidden or 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<string> | |
| #include<cstring> | |
| #include<queue> | |
| #include<algorithm> | |
| using namespace std; | |
| int dist[10000]; | |
| void bfs(string a, string b) { | |
| queue<string> q; | |
| q.push(a); |
This file contains hidden or 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<stdio.h> | |
| #include<cmath> | |
| using namespace std; | |
| int main() { | |
| int t; | |
| scanf("%d", &t); | |
| int n; | |
| while (t--) { | |
| scanf("%d", &n); | |
| printf("%d\n", (int)sqrt(n)); |
This file contains hidden or 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 d[101]; | |
| int main() { | |
| int t; | |
| cin >> t; | |
| int n; | |
| while (t--) { | |
| cin >> n; |
This file contains hidden or 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<vector> | |
| #include<algorithm> | |
| #include<string> | |
| using namespace std; | |
| int l, c; | |
| bool check(string password) { | |
| int ja = 0; | |
| int mo = 0; | |
| for (char x : password) { |
This file contains hidden or 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 <algorithm> | |
| #include <vector> | |
| using namespace std; | |
| int main() { | |
| int l, c; | |
| cin >> l >> c; | |
| vector<char> a(c); | |
| for (int i = 0; i < c; i++) { | |
| cin >> a[i]; |
This file contains hidden or 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<stack> | |
| #include<cstring> | |
| using namespace std; | |
| char a[1000001]; | |
| char erased[1000001]; | |
| char b[100]; | |
| int main() { | |
| scanf("%s", a); | |
| scanf("%s", b); |
This file contains hidden or 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<queue> | |
| #include<algorithm> | |
| using namespace std; | |
| const int MAX_SIZE = 20; | |
| int n; | |
| int a[MAX_SIZE][MAX_SIZE]; | |
| int dfs(int d) { | |
| if (d == 5) { | |
| int ret = 0; |
This file contains hidden or 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> | |
| #include<iostream> | |
| #include<algorithm> | |
| #include<cstring> | |
| using namespace std; | |
| const int MOD = 20170805; | |
| int h[501][501]; | |
| int v[501][501]; | |
| // 전역 변수를 정의할 경우 함수 내에 초기화 코드를 꼭 작성해주세요. |
This file contains hidden or 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> | |
| #include<iostream> | |
| #include<algorithm> | |
| #include<cmath> | |
| using namespace std; | |
| // 전역 변수를 정의할 경우 함수 내에 초기화 코드를 꼭 작성해주세요. | |
| int solution(int n, vector<vector<int>> data) { | |
| vector<pair<int, int>> data2(n); | |
| for (int i = 0;i < n;i++) { |
OlderNewer