- 博客(4)
- 收藏
- 关注
原创 PAT (A )1004. Counting Leaves (30)
PAT (A )1004. Counting Leaves (30) Each input file contains one test case. Each case starts with a
2017-07-14 15:38:01
198
原创 Linux Ubuntu 配置JDK(未解决)
使用.rpm 包配置jdk环境: 1.用aline 将rpm转为jar包 2.解压jar包 3.配置环境变量 此时会报错 Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object 试过各种方法均无效,比较靠谱的是: 使用自带的unpack200 把
2017-05-24 17:46:22
271
转载 C++ 二元数组删除一行一列问题
自己缺少经验想不到... 假定原数组为a的行列数分别为m和n,先确定要删除的行(r)和列(c),然后将r行c列以外的元素逐个赋值到另一数组(比如b):r0=c0=0;for(i=0; i if(i==r) r0=1; for(j=0; j if(j b[i][j]=a[i+r0][j+c0]; }}
2017-05-14 12:14:37
3035
翻译 DP(1) 通天塔
输入包含多组测试数据。每组输入的第一行是一个整数n(n #include #include using namespace std; typedef struct{ int x,y,z; }brick; int main(){ int n; cin>>n; brick bricks[90]; bool putable[90][90]; while(n!=0){ fo
2017-04-15 23:52:27
421
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人