180523_10610_30
//https://www.acmicpc.net/problem/10610 #include #include #include #include using namespace std; int main(){ string num; cin >> num; int l=num.size(); int sum=0; bool chk=0; vector v; for(int i=0; i=0; --i) { cout
//https://www.acmicpc.net/problem/10610 #include #include #include #include using namespace std; int main(){ string num; cin >> num; int l=num.size(); int sum=0; bool chk=0; vector v; for(int i=0; i=0; --i) { cout
//https://www.acmicpc.net/problem/4963 #include #include #include using namespace std; bool map[50][50];bool visited[50][50];int cnt;int w, h;int dy[8]={-1, -1, -1, 0, 0, 1, 1, 1};int dx[8]={-1, 0, 1, -1, 1, -1, 0, 1};void bfs(int y, int x){ queue q; q.push(make_pair(y,x)); map[y][x]=0; int nowy; int nowx; while(!q.empty()){ nowy=q.front().first; nowx=q.front().second; q.pop(); for(int i=0; i> w..
//https://www.acmicpc.net/problem/9012 #include #include #include using namespace std; bool vps(){ stack s; string str; cin >>str; int l=str.size(); s.push(str[0]); for(int i=1; i> tc; for(int i=0; i
//https://www.acmicpc.net/problem/9461 #include using namespace std; long long int p[101]; int main(){ p[1]=p[2]=p[3]=1; p[4]=p[5]=2; p[6]=3; p[7]=4; p[8]=5; p[9]=7; p[10]=9; for(int i=11; i> t; while(t-->0){ int n; cin>>n; cout