码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
PAT Advanced 1144 The Missing Number (20分)
Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains ...
分类:其他好文   时间:2020-01-27 17:28:02    阅读次数:71
PAT Advanced 1132 Cut Integer (20分)
Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 ...
分类:其他好文   时间:2020-01-27 17:11:56    阅读次数:80
hdu1062 text reverse
咳咳,这个是为了赶量 需要注意的就是输入方式,别的也没什么难点 Problem Description Ignatius likes to write words in reverse way. Given a single line of text which is written by Igna ...
分类:其他好文   时间:2020-01-27 15:40:56    阅读次数:55
1005 Spell It Right (20分)
1005 Spell It Right (20分) 题目: Given a non negative integer N , your task is to compute the sum of all the digits of N , and output every digit of the ...
分类:其他好文   时间:2020-01-26 23:49:39    阅读次数:85
codeforce F - Three Paths on a Tree
F. Three Paths on a Tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a ...
分类:其他好文   时间:2020-01-26 22:34:35    阅读次数:79
PAT 甲级 1105 Spiral Matrix (25分)(螺旋矩阵,简单模拟)
1105 Spiral Matrix (25分) This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix ...
分类:其他好文   时间:2020-01-26 20:50:27    阅读次数:84
PAT 甲级 1104 Sum of Number Segments (20分)(有坑,int *int 可能会溢出)
1104 Sum of Number Segments (20分) Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the s ...
分类:其他好文   时间:2020-01-26 19:20:05    阅读次数:96
Leetcode solution 190: Reverse Bits
Problem Statement Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 Output: 00111001011110000010100 ...
分类:其他好文   时间:2020-01-26 10:30:28    阅读次数:94
442. Find All Duplicates in an Array
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twi ...
分类:其他好文   时间:2020-01-24 12:08:31    阅读次数:78
LeetCode 708. Insert into a Sorted Circular Linked List
原题链接在这里:https://leetcode.com/problems/insert-into-a-sorted-circular-linked-list/ 题目: Given a node from a Circular Linked List which is sorted in ascen ...
分类:其他好文   时间:2020-01-24 12:07:34    阅读次数:87
24278条   上一页 1 ... 85 86 87 88 89 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!