[链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] 模拟一下就好 一位一位地往右移动. [代码] #include <bits/stdc++.h> using namespace std; const int N = 300; int a[N+10]; int b[N+10]; string s1,s2; int ans; void can(int l,int r){ for (int i = l,j = 1;i <= r && j <= (int)…
上次那个大数开方的高精度的题,UVa113 Power of Cryptography,直接两个double变量,然后pow(x, 1 / n)就A过去了. 怎么感觉UVa上高精度的题测试数据不给力啊... 话说回来,我写了100+行代码,WA了,后来考虑到要忽略前导0,又WA了,实在不知道哪出问题了. Overflow Write a program that reads an expression consisting of twonon-negative integer and an…
今天项目中报了如下错误 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 查了下网上,都是说是mysql默认8小时关闭不用的连接.用数据库连接池导致的.可是项目中这个功能是用来导数据的,是动态连接,直接java jdbc 获取connection的,用完之后就关闭了.最后运维的人员查出来是i…