建表测试
测试表数据:test1 CREATE DATABASE /*!32312 IF NOT EXISTS*/db_test /*!40100 DEFAULT CHARACTER SET utf8 */; USE db_test; /*Table structure for table test1 */ DROP TABLE IF EXISTS test1; CREATE TABLE test1 ( id int(10) NOT NULL, score i…
题目:
1212. 地宫取宝 - AcWing题库 思路:dp(最长上升子序列和摘花生的结合) 代码: #include<iostream>
using namespace std;
const int N 55;
const int MOD 1000000007;int n, m, k;
int w[N][N];//每个坐…
题目:Always casez
Build a priority encoder for 8-bit inputs. Given an 8-bit vector, the output should report the first (least significant) bit in the vector that is 1. Report zero if the input vector has no bits that are high. For example, the …