- 博客(10)
- 资源 (23)
- 收藏
- 关注
原创 poj-3624
Charm BraceletTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 44234 Accepted: 18997DescriptionBessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to...
2018-03-30 17:09:44 246
原创 poj-2479
Maximum sumTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 42649 Accepted: 13275DescriptionGiven a set of n integers: A={a1, a2,..., an}, we define a function d(A) as below:Your task is to c...
2018-03-30 16:08:17 144
原创 牛客网-Offer-从尾到头打印链表
题目描述输入一个链表,从尾到头打印链表每个节点的值。利用栈先进后出特点。import java.util.*;class ListNode {//链表节点,返回节点值 int val; ListNode next = null; ListNode(int val) { this.val = val; }}public class Solutio...
2018-03-28 21:59:53 213
原创 牛客网-剑指Offer-替换空格
题目描述请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。完整代码如下:public class Solution { public static void main(String[] args) { // TODO Auto-generated method stub String ...
2018-03-28 12:59:42 225 1
原创 牛客网-剑指Offer-二维数组的查找
题目描述在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。import java.util.*;public class Solution { public static int[][] array;//全局变量 /*在网站中直接写这段即可 public boo...
2018-03-27 22:05:31 258
原创 poj-2506-填瓷砖
TilingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 10753 Accepted: 4996DescriptionIn how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles? Here is a sample tiling of a 2x17 rect...
2018-03-21 10:13:34 263
原创 poj-1316-非自私数
以文件输出ER,不知原因。但直接输出就通过了。#include<stdio.h>int num[10001]={0};int main(){ /*FILE *f; f=fopen("ans.txt","w"); if(f==NULL) { printf("create file failed\n"); return -1; }*/ in...
2018-03-18 17:25:44 203
原创 求n个数最大最小值
#include<stdio.h>int max(int n){ int i,x,f; scanf("%d",&f); for(i=1;i<n;i++) { scanf("%d",&x); if(x>f) f=x; } return f;}int min(int n){...
2018-03-17 19:48:35 3868 1
原创 poj1953-斐波拉契数列
World Cup NoiseTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 18309 Accepted: 8895DescriptionBackground "KO-RE-A, KO-RE-A" shout 54.000 happy football fans after their team has reached the ...
2018-03-14 21:30:05 218
转载 1029_假硬币
False coinTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 20429 Accepted: 5748DescriptionThe "Gold Bar"bank received information from reliable sources that in their last group of N coins exa...
2018-03-11 21:04:44 182
学生选课系统 .zip
2019-12-02
addressbook.zip
2019-07-18
oracle实验二 体系结构、存储结构与各类参数
2018-10-18
Oracle实验一安装和使用Oracle数据库
2018-10-18
数据库实验二实验报告
2018-04-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人