전체 글 (388) 썸네일형 리스트형 [알고리즘] 진법 변환 123456789101112131415161718192021222324252627282930313233#include#include#include#include using namespace std; int main(){ string n; long long m; long long ans = 0; int cnt = 0; cin >> n ; cin >> m ; for(int i = n.length()-1 ; i != -1 ; i--) { int tmp = 0; if(n[i] - '0' [알고리즘] 소수의 개수 찾기 - 에라토스테네스의 채 n부터 m까지 소수의 갯수를 구하는데 빠르게 구하는 방법2부터 각 범위까지 배수를 지워 가는 형식 123456789101112131415161718192021222324252627282930313233343536373839404142#include#include#include using namespace std;bool pn[1000001] = {0}; int main(){ int n, m ; std::fill_n(pn, 1000001, true); cin >> n >> m; if(n 1000000) return -1; if (m 1000000) return -1; for(int i = 2; i*i [퍼옴] gdb 분석 보조 - python 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354#!/usr/bin/python from subprocess import Popen , PIPEfrom time import sleep # shellcodeshellcode = "\x41" * 1000 + "\n" # opens gdb with parameter executable# you can also manage stdout and stderr hereproc = Popen( ['gdb' , 'executable'] , bufsize=1 ,stdin=PIPE ) # sample breakpoint# notice the new.. [알고리즘] DP- 땅따먹기 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172#include#includeusing namespace std; vector dp(10001, vector(4,0)); int hopscotch(vector board){ // 함수를 완성하세요. // if (x != z) // d[n][x] = max(d[n-1][z]) + board[n][z] // 점화식[?] int answer = 0; int col = 4; int row = board.size(); int tmp = 0; for(int i = 0 ; i [알고리즘] DP-가장 큰 정사각형 찾기 문제 해결 전략DP 파악DP는 작은 문제로 큰 문제 해결작은 문제의 답을 memory에 적재12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667#include#include#include#includeusing namespace std; //x,y에서의 최대 변의 길이를 저장하는 변수vector dp(10001, vector(10001,0)); int _min(int a, int b, int c){ a = a [QEMU] Board 보호되어 있는 글입니다. [백준] 동적기획법 - 피보나치 0과 1 세기 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455#include #include #include using namespace std; int a,b;int fibonacci(int n, int m); int mem[10001][4] = {0}; int main(void){ mem[0][0] = 1; mem[1][0] = 0; int n,c; cin >> n; while(n--){ cin >> c ; if( 0 > c || c > 40){ return 1; } cout OS Remote Detection - [2] Sequence generation (SEQ, OPS, WIN, and T1)A series of six TCP probes is sent to generate these four test response lines. The probes are sent exactly 100 milliseconds apart so the total time taken is 500 ms. Exact timing is important as some of the sequence algorithms we detect (initial sequence numbers, IP IDs, and TCP timestamps) are time dependent. This timing value was chosen to take 500 ms .. 이전 1 ··· 8 9 10 11 12 13 14 ··· 49 다음