반응형
백준
-
백준 1932번 C++ 풀이백준 2018. 8. 19. 15:11
#include #include #include #include #include using namespace std; int buffer[600][600]; int result[600][600]; int main() { cin.tie(NULL); ios::sync_with_stdio(false); int n; cin >> n; for (int i = 0 ; i buffer[i][j]; } } result[0][0]= buffer[0][0]; for (int i = 1; i
-
백준 10866번 C++ 풀이백준 2018. 8. 19. 14:53
#include #include #include #include #include using namespace std;char buffer[10000000]; int main() {cin.tie(NULL);ios::sync_with_stdio(false); int n;cin >> n;deque st;for (int i = 0; i> buffer;if (strcmp(buffer, "push_front") == 0) {int temp;cin >> temp;st.push_front(temp);}else if (strcmp(buffer, "push_back") == 0) {int temp;cin >> temp;st.push_back(temp);}else if (strcmp(buffer..