x*****d 发帖数: 704 | 1 用excel打开的时候要选择tab delimited或者comma delimited。 |
|
y**x 发帖数: 117 | 2 Thank you very much. I also just found this thread and solved my problem.
In my case, I need to specify the 'Delimiter' as: ',\r'.
So the whole routine is:
fid=fopen('anndata.txt');
t=textscan(fid,'%f%f%f','CollectOutput',1,'Delimiter',',\r')
fclose(fid);
The blank lines were read as:
ans =
NaN NaN NaN
1 2 NaN
NaN NaN NaN
33 4 NaN
For data file:
--------
1,2
33,4
-------
Thank you all for the help. |
|
r********e 发帖数: 100 | 3 Is it the original file or the one you generated through copy and paste?
The delimited symbol is mixed with missing data in the table.
Therefore, basically it is hard to be parsed out. You might want to retrieve
the certain formatted file from the data resource, such as .tsv or .csv
file with clear delimited boundary.
Hope this will help
: |
|
EA 发帖数: 3965 | 4 数据 是 comma delimited 的 csv文件,可是我不能正确的读进sas里。因为有一个变
量‘location',是不规则的。有一些是只有城市,有一些是城市+州,结果读进sas的时
候,那些含有 州 的 record 就变成两个变量了。我用了delimiter = ',' MISSOVER
DSD 在 input语句里,可是还不能正确的输入。有其他方法可以读入吗?
LOCATION
New York,
New York, NY,
Irvine,
Dallas, |
|
l**********9 发帖数: 148 | 5 Why you use missover and dsd toghter? they totally have the same function in
processing the missing data. The default delimiter in dsd is ',',so you do
not need delimiter = ','. I think just "infile '...' dsd" will be ok.
Use two or more INPUT statements to read the data will be more helpful.Don`t
forget adding @ at the end of each INPUT statement. |
|
A*******s 发帖数: 3942 | 6 comment:
1. dlm="/" SAS默认两个或以上的delimiter为一个
2. :$12. informat 之前加colon,sas会在遇到space和delimiter时停止读入
3. id 4. 这个我不是很确定。如果将id的informat改成$,似乎sas会将后面的空格
和refid一起读入,然后保留前八位再把后面的空格去掉。我不知道怎么解决,只能把
id当做numeric读入就行了。
改了一下,运行好像没错,sample code如下
data new;
infile "**********" missover dlm="/" ;
input id 4. refid :$12. @;
num=0;
do while (refid ne ' ');
num+1;
output;
input refid :$12. @;
end;
run;
proc print;
run |
|
b******e 发帖数: 539 | 7 1. 现在的程序根本不会有结果,'CA'后面必须有‘;’
改好后建议研究一下if statement。有两种情况:
(1) if ... then ...;
(2) if ... then do; ...; end;
2. 建议研究一下output statement。每个output statement都会往output data sets
里面写一遍。前面两个output statement是有条件的,所以只有符合条件的才会往它指
定的output data sets里面写。最后一个是无条件的,也没说明要往哪个data set里写
,所以会往所有的data sets里面写。
3. by default, SAS uses blank as a delimiter. Since there is no special
delimiter specified, and the program does not specify how many characters
should be read in (in the input statement,) it r |
|
s*****n 发帖数: 2174 | 8 are there any field delimiters?
If there are no delimiters, R will treat these as string naturally. |
|
Y**********8 发帖数: 67 | 9 DSD does two things:
1) sets commma the default delimiter (so you don't need the delimiter option)
2) removes quotation marks from values (so the quotation marks will be
removed from the values, and comma in the quotation marks will appear as
part of the values )
you may need the length statement before the input statement
correct me if I am wrong
quotes. |
|
s*****d 发帖数: 2667 | 10 proc import datafile="P:\ClaimsData.text" out=sasuser.claim1;
~~~~~~~~~~~~~~~~~~~~~~~~~~.txt~~~~~~~~~~~
DBMS = identifier REPLACE;
run;
identifiers:
Tab-delimited .txt: TAB
Delimiters other than commas or tabs: DLM |
|
n***p 发帖数: 508 | 11 I have a comma delimited file (.csv) and it is more than 210,000 rows. I
need to read it into sas, but I have a problem here. One text field in the
csv file is sometimes a long text string with commas in it. one example is
like this, please look at the content between "previous_field" and "next_
field":
previous_field,"CANCELLATION WITH REFUND AS PER TRACKER RECEIVED ON 16/04/08
.Nothing constrained shall be held to vary, alter, waive or change any of
the insuring agreements, exclusions, condit... 阅读全帖 |
|
b******e 发帖数: 539 | 12 因为你没有说delimiter是什么,SAS就用default delimiter,就是空格.你的数字后
面有两个空格,所以当你读日期的时候,SAS是从数字后的第二个空格开始读起的,读
9个,所以日期的最后一位就被leftout. |
|
t*****2 发帖数: 94 | 13 ID Name Sex Age Date Height Weight ActLevel Fee
2458 Murray, W M 27 1 72 168 HIGH 85.2
2462 Almers, C F 34 3 66 152 HIGH 124.8
There is an embeded comma in the names. I tried many input methods, but it
still didn't work. Can anybody help me out here?
The code I used:
DATA newadmit;
INFILE 'C:\Users\labuser\Desktop\newadmit.txt' FIRSTOBS = 2 OBS = max;
INPUT ID 1-4 Name : $40. Sex $ 26 Age Date Height Weight ActLevel ... 阅读全帖 |
|
|
i*****f 发帖数: 578 | 15 Users of curly bracket programming languages, such as C or Java, sometimes
expect or wish Python to follow a block-delimiter convention. Brace-
delimited block syntax has been repeatedly requested, and consistently
rejected by core developers. The Python interpreter contains an easter egg
that summarizes its developers' feelings on this issue. The code from __
future__ import braces raises the exception SyntaxError: not a chance.
>>> from __future__ import braces
File "", line 1
SyntaxE |
|
m*****u 发帖数: 15526 | 16 张新军
原载《政法论坛(中国政法大学学报)》2006年第4期p107~117
「英文标题」The Signficance of Natural Prolongation Principle in the
East ChinaSea Dispute between China and Japan ——Perspective from the
Relationship betweenInstitution of Right and Rule of Delimitation
「作者简介」张新军(1967—),男,江苏南京人,人文和环境学博士,清华大学
法学院讲师。北京100084
「内容提要」在法律适用上,当双方大陆架权利主张不同时,权利界限的划定问题
产生的前提是这两个权利主张必须是等价的,相对抗的,并因此导致权利主张重叠。否
则,通过大陆架权利制度已经分出权利主张之优先顺序,划界将不成为问题。更没有必
要(尽管不妨碍)适用划界规则。中日争端的主要矛盾在于明确权利制度中不同权利主
张的法律上的效力而非划界规则的适用。中方的东海大陆架自然延伸到冲绳海槽这一权
利主张,无论在法律上还是在事实上 |
|
x********i 发帖数: 905 | 17 贴上来了,不需要翻译吧?
China [Original: Chinese]
Upon ratification (7 June 1996):
In accordance with the decision of the Standing Committee of the Eighth
National People's Congress of the People's Republic of China at its
nineteenth session, the President of the People's Republic of China has
hereby ratified the United Nations Convention on the Law of the Sea of 10
December 1982 and at the same time made the following statement:
1. In accordance with the provisions of the United Nations Convention on the
... 阅读全帖 |
|
x********i 发帖数: 905 | 18 你眼睛也瞎了?
再给你贴一遍
China [Original: Chinese]
Upon ratification (7 June 1996):
In accordance with the decision of the Standing Committee of the Eighth
National People's Congress of the People's Republic of China at its
nineteenth session, the President of the People's Republic of China has
hereby ratified the United Nations Convention on the Law of the Sea of 10
December 1982 and at the same time made the following statement:
1. In accordance with the provisions of the United Nations Convention on th... 阅读全帖 |
|
x********i 发帖数: 905 | 19 China [Original: Chinese]
Upon ratification (7 June 1996):
In accordance with the decision of the Standing Committee of the Eighth
National People's Congress of the People's Republic of China at its
nineteenth session, the President of the People's Republic of China has
hereby ratified the United Nations Convention on the Law of the Sea of 10
December 1982 and at the same time made the following statement:
1. In accordance with the provisions of the United Nations Convention on the
Law of the Se... 阅读全帖 |
|
b********n 发帖数: 38600 | 20 Territorial waters or a territorial sea as defined by the 1982 United
Nations Convention on the Law of the Sea,[1] is a belt of coastal waters
extending at most 12 nautical miles (22.2 km; 13.8 mi) from the baseline (
usually the mean low-water mark) of a coastal state. The territorial sea is
regarded as the sovereign territory of the state, although foreign ships (
both military and civilian) are allowed innocent passage through it; this
sovereignty also extends to the airspace over and seabed ... 阅读全帖 |
|
l*****h 发帖数: 709 | 21 前戏做的够足的
U.S. to send warships into disputed sea
WASHINGTON - The United States has told nations in Southeast Asia it will
send naval vessels soon into what China claims as its territory in the
disputed West Philippine Sea (South China Sea), diplomatic sources said
Sunday.
The United States is expected to sail warships within 12 nautical miles of
artificial islands that China has created in the Spratly Islands in defiance
of opposition from other claimants, such as the Philippines and Vietnam,
th... 阅读全帖 |
|
c*********3 发帖数: 6862 | 22 "丁樹範表示,從法理角度美軍站得住腳,派軍艦進入爭議島礁海域表明不承認中方擁有
主權"
为什么这些所谓学者记者都是张嘴就来呢?美军经过的渚碧礁是只有低潮时才现出水面
的low-tide elevation,而根据中国签署的联合国海洋公约,这些岛礁本身根本不具有
领海投射能力,只能拥有500米的安全区域。
UNCLOS-Part 2-Article 13
2. Where a low-tide elevation is wholly situated at a distance exceeding the
breadth of the territorial sea from the mainland or an island, it has no
territorial sea of its own.
UNCLOS-Part 5-Article 60
5. The breadth of the safety zones shall be determined by the coastal State,
taking into account applicable internation... 阅读全帖 |
|
x******g 发帖数: 33885 | 23 一开头这句话就摆明这个法庭在不袒护中国:
the Tribunal has emphasized that it does not rule on any question of
sovereignty over land territory and does not delimit any boundary between
the Parties.
既然如此,后面的长文就当是放屁。 |
|
l*****i 发帖数: 20533 | 24 由非法的‘法庭’做的所谓裁决终于出台了。这种时候中国应该再次表明这个所谓‘法
庭判决’的非法之处:
中国于2006年根据海洋法相关规定明确声明了自己拒绝海洋法法庭的自动争端判决机制
。也就是说,任何关于海洋划界及权益的判定,根据情况,不能自动立刻由unclos法庭
裁决。(需要注意的是,这并不是让任何单方拒绝实行海洋法的借口,而是规定有一个
具体程序。具体见下面的详细分析。所以这种拒绝自动裁判的声明不是耍流氓,也被多
国所采用,比如法国之类。而且这本身就是unclos包含的条款之一。)
具体条文如下:
Article 298. Optional exceptions to applicability of section 2
"1. When signing, ratifying or acceding to this Convention or at any time
thereafter, a State may, without prejudice to the obligations arising under
section 1, declare in writing tha... 阅读全帖 |
|
c*******4 发帖数: 1874 | 25 a state may declare in writing that it does not accept any one or more of
the ways the law proposes to settle dispute concerning sea boundary
delimitations.
-UNCLOS |
|
s*x 发帖数: 8041 | 26 NEW DELHI: India has sidestepped a Chinese attempt to delink the Dokalam
standoff from the Special Representative mechanism to find a solution to the
4,057-km-long Line of Actual Control that divides the two nations.
Beijing had said that the current standoff was ‘out of the purview’ of the
Special Representatives, according to officials. Beijing claimed that since
the boundary at Sikkim Sector had already been delimited, as per Chinese
version, by the 1890 convention between UK and China, the S... 阅读全帖 |
|
发帖数: 1 | 27 大家自行鉴别一下版上谁是拼老命装城里人的农村文盲土狗
http://apps.who.int/medicinedocs/en/d/Js6170e/
Expand Document | Expand Chapter | Full TOC | Printable HTML version
Subjects & Keywords
SARS: Clinical Trials on Treatment Using a Combination of Traditional
Chinese Medicine and Western Medicine
(2004; 194 pages) View the PDF document
Abstract
This document is published as the report of the WHO International Expert
Meeting to review and analyse clinical reports on combination treatment for
SARS, held in Beijing, Ch... 阅读全帖 |
|
f*********r 发帖数: 7485 | 28 這功勞,太子黨算上一筆,班上的美車托也得算上一筆
【 以下文字转载自 Military 讨论区 】
发信人: liutech (LiuTech), 信区: Military
标 题: 美国正式通过外交渠道向周边国家通报即将进入12海里
发信站: BBS 未名空间站 (Mon Oct 19 16:03:54 2015, 美东)
前戏做的够足的
U.S. to send warships into disputed sea
WASHINGTON - The United States has told nations in Southeast Asia it will
send naval vessels soon into what China claims as its territory in the
disputed West Philippine Sea (South China Sea), diplomatic sources said
Sunday.
The United States is expected to sail warships within 12 nauti... 阅读全帖 |
|
y***r 发帖数: 16594 | 29 后面我就不转了,概括一下说吧,就是跟我们班上神医一样搞法,去bj,cost买了,然
后卖。刚开始一年都不赚钱。亏了1个m打出个名声来。
It is good to be the chief executive of a company that's about to ship 500
million diapers in a single year. For one thing, you get to drive a golf
cart as fast as you want in your new 1,250,000-square-foot warehouse.
"Hang on!" says Marc Lore, putting the hammer down.
The golf cart leaps forward, racing through 10-foot-tall canyons of diapers
stacked on pallets. At 25 miles an hour, the diaper mountains blur by, here
a pyramid ... 阅读全帖 |
|
c*********k 发帖数: 20696 | 30 * 0-60 3.9 sec.[26] (2011 E90/E92 w/ M-DCT trans)
* 1/4 mile: 12.4 sec. @ 114 mph. (2011 E90/E92 w/ M-DCT Trans)[26]
* 0-60 5.1 sec. (2009 E93 Convertible w/ M-DCT trans)
* 1/4 mile: 13.1 @ 109 mph. (2009 E93 Convertible w/ M-DCT Trans)
* Top Speed: 155 mph.[26] (electronically limited) Delimited: ~290 km/h
(180 mph)+
* Skid Pad: 0.98 g
* Slalom: 114.9 km/h (71.4 mph)
* Fuel Consumption: 12.4 L/100 km (22.8 mpg-imp; 19.0 mpg-US) (EU test c
ycle) |
|
w****o 发帖数: 2221 | 31 * From the AFN Inventory page in Seller Central, select an item to remove,
pick Create Removal Order in the drop-down, and click the Go button
* Select the option "Upload Flat File Feed" (top right of the page)
* Download the template, and create using the instructions in the file
* Upload the file (make sure to save a copy as Text Tab Delimited and upload
this version) |
|
n*****s 发帖数: 3246 | 32 excel直接打开txt就可以了,选择一下delimiter就好了 |
|
m***e 发帖数: 428 | 33 三 困难之本体论方面的根源
华人学生赖以成长的社会,在制度和文化的各方面与西方社会均有着重要的历史的和现
状的差异,因为这一系列存在经验的差异而对诸多现代西方社会科学的概念不易接受,
是笔者所观察到的最普遍的一种困难。
例一。在西方社会科学文献里,bureaucracy是一个中心概念。对当代bureaucracy讨论
影响最大的,是韦伯(Max Weber)的著名定义:
The following may thus be said to be the fundamental categories of rational
legal authority:
(1)A continuous organization of official functions bound by rules.
(2)A specified sphere of competence…
(3)The organization of offices follows the principle of hierarchy…
(4)The rules which regulate the conduct of an off... 阅读全帖 |
|
w******i 发帖数: 1476 | 34 SAS Interview Questions from http://www.sconsig.com/
Very Basic
What SAS statements would you code to read an external raw data file to a DATA
step?
How do you read in the variables that you need?
Are you familiar with special input delimiters? How are they used?
If reading a variable length file with fixed input, how would you prevent SAS
from reading the next record if the last variable didn't have a value?
What is the difference between an informat and a format? Name three informats
or format |
|
w******i 发帖数: 1476 | 35 SAS Interview Questions from http://www.sconsig.com/
Very Basic
What SAS statements would you code to read an external raw data file to a DATA
step?
How do you read in the variables that you need?
Are you familiar with special input delimiters? How are they used?
If reading a variable length file with fixed input, how would you prevent SAS
from reading the next record if the last variable didn't have a value?
What is the difference between an informat and a format? Name three informats
or format... 阅读全帖 |
|
H*M 发帖数: 1268 | 36 Write the code to print a Binary tree level by level STARTING FROM THE
LEAF LEVEL and then give exhaustive test cases.
eg: 1
2 3
4 5 6 7
Output: 4567
23
1
I am thinking of using BFS. use a queue. push right child first then left
child.
also push everything popped from queue to a stack. finally pop from the
stack.
use "null" to delimit the new line.
I feel it is not good. any better ideas? |
|
H*M 发帖数: 1268 | 37 你有一种语言的dictionary,你有一大串string,没有delimit,你如何interpret成字典中
的字呢? |
|
g****y 发帖数: 436 | 38 【 以下文字转载自 Programming 讨论区 】
发信人: ggplay (dfdsf), 信区: Programming
标 题: string /File IO processing using C
发信站: BBS 未名空间站 (Wed Jan 20 21:57:01 2010, 美东)
这两天在改一个用C写的处理文件IO和字符串的程序,遇到众多令人头疼的问题,靠着
google和自己的一些想法勉强解决了,但是效率不高,想请教一下这里的大侠:
1。从文件中读取一行,例如:
SR01.01 02 G\t-\t9908\t#@#@$@@#@#@@
现在想得到SR01.01 02 G, -, 9908这三个字符串。
首先想到用scanf("%s%s%s%*s",s1,s2,s3);
但是不工作,因为SR01.01 02 G中间有两个空格。
放狗发现了一个bstrlib.h,里面有一个bsplit,可以使用\t作为delimiter。但是太麻
烦了,所以自己写了一个getTokens。
后来发现c++ programming how to里面有一个写得很好的string类,但是我 |
|
j**l 发帖数: 2911 | 39 如何序列化一棵常规二叉树(不一定是BST)
方法一:
先序(中序或者后序)遍历这棵二叉树,对于空的左右孩子,也要输出空格或者某种特
殊字符作为delimiter,输出的序列就是序列化的结果
例如先序遍历输出
ABC@@DE@G@@F@@@
其中@表示空格字符
然后可以用递归的方式按先序(中序或者后序)序列建立二叉树(反序列化)
PROC crt_bt_pre(VAR bt:bitreptr)
read a char from the sequence, store it in ch;
IF ch = ' ' THEN bt: = NIL
ELSE [
new(bt);
bt^.data = ch;
crt_bt_pre(bt^.lchild);
crt_bt_pre(bt^.rchild)
]
ENDP
方法二:
利用如下原理
1) 已知一棵二叉树的先序序列和中序序列,可以唯一地重构这棵二叉树
2) 已知一棵二叉树的中序序列和后序序列,可以唯一的重构这棵二叉树
这样就可以输出先序和中序序列(或者中序和后序序列)作为序列化的结果
如果问起如何重构,比如知道先序序列和中序序列,则
从先序序 |
|
j**l 发帖数: 2911 | 40 我以前有帖子讲了几种解法,小尾羊补充了一下
第一种解法是利用前序+中序(或者中序+后序)来重建。我当时提出了这个方法,但是没
有复习,忘记了怎么重建,失败。
第二种解法是利用一个一维数组来存储,也就是存储完全二叉树或者堆的那种方式,但
是对普通二叉树会严重浪费空间。我当时也提到了这种方式,但是描述不清晰,面试官
没有听懂。
第三种解法是对第二种方法的改进,适合存储普通二叉树。实际上是用了三个数组,一
个数组用来存节点信息,此外引入了L和R两个辅助数组来指示每个节点的左右孩子
第四种方法是对第一种方法的改进,只需要一个前序(或者中序,或者后序)就可以了,
但是对NULL,也要用特殊的符号输出标示,作为delimiter
我想只有提到了全部四种,而且会编写第一种和第四种方法重构的代码,才算完美解答
了这道题 |
|
b********e 发帖数: 693 | 41 You are a given a very large line delimited file. With a phone number on
each line. How would you remove all duplicates?
1. Can you remove duplicates in less than O (n)?
2. How about the file is too large, out of memory limit? |
|
z****s 发帖数: 532 | 42 search for delimiters in your string |
|
h*********n 发帖数: 11319 | 43 i believe the output should depend on how the interviewer would like to trea
t ' ' (or other delimiters)
string reverseByWord(string in){
string out;
string::iterator s = in.end();
string::iterator e = in.end();
while(s!=in.begin()){
e = s;
s--;
while((*s != ' ')&&(s != in.begin())){
s--;//strops at space
}
string::iterator cur = s;
... 阅读全帖 |
|
|
g**********y 发帖数: 14569 | 45 1. 你有一种语言的dictionary,你有一大串string,没有delimit,你如何interpret成字
典中的字呢?
http://www.mitbbs.com/article/JobHunting/31488093_3.html
这个刚讨论过,就是把一个句子分拆成单词,既可以用Trie, 也可以DP。去search
ihasleetcode的帖子。
2. 给你一个字典array of strings (you may preprocess it if necessary)
任意一个单词,求最小的edit distance
一个单位的distance定义为:
a. replace a letter
b. delete a letter
c. insert a letter (also at any position)
这个我不知道有什么高效的办法,我就brutal force: 反复调用minimumEditDistance(
String a, String b),求最小值。
求最小值的时候可以加点智能,比如已知现在最小值为k, 那么word.length() +/- k... 阅读全帖 |
|
m**q 发帖数: 189 | 46
1. 你有一种语言的dictionary,你有一大串string,没有delimit,你如何interpret成字
典中的字呢?
http://www.mitbbs.com/article/JobHunting/31488093_3.html
这个刚讨论过,就是把一个句子分拆成单词,既可以用Trie, 也可以DP。去search
ihasleetcode的帖子。
=> 收到,多谢啦
应该是trie + backtracking 或者 trie + DP吧
2. 给你一个字典array of strings (you may preprocess it if necessary)
任意一个单词,求最小的edit distance
一个单位的distance定义为:
a. replace a letter
b. delete a letter
c. insert a letter (also at any position)
这个我不知道有什么高效的办法,我就brutal force: 反复调用minimumEditDistance(
String a, String b),求最小值。
... 阅读全帖 |
|
|
g**********y 发帖数: 14569 | 48 1. 你有一种语言的dictionary,你有一大串string,没有delimit,你如何interpret成字
典中的字呢?
http://www.mitbbs.com/article/JobHunting/31488093_3.html
这个刚讨论过,就是把一个句子分拆成单词,既可以用Trie, 也可以DP。去search
ihasleetcode的帖子。
2. 给你一个字典array of strings (you may preprocess it if necessary)
任意一个单词,求最小的edit distance
一个单位的distance定义为:
a. replace a letter
b. delete a letter
c. insert a letter (also at any position)
这个我不知道有什么高效的办法,我就brutal force: 反复调用minimumEditDistance(
String a, String b),求最小值。
求最小值的时候可以加点智能,比如已知现在最小值为k, 那么word.length() +/- k... 阅读全帖 |
|
m**q 发帖数: 189 | 49
1. 你有一种语言的dictionary,你有一大串string,没有delimit,你如何interpret成字
典中的字呢?
http://www.mitbbs.com/article/JobHunting/31488093_3.html
这个刚讨论过,就是把一个句子分拆成单词,既可以用Trie, 也可以DP。去search
ihasleetcode的帖子。
=> 收到,多谢啦
应该是trie + backtracking 或者 trie + DP吧
2. 给你一个字典array of strings (you may preprocess it if necessary)
任意一个单词,求最小的edit distance
一个单位的distance定义为:
a. replace a letter
b. delete a letter
c. insert a letter (also at any position)
这个我不知道有什么高效的办法,我就brutal force: 反复调用minimumEditDistance(
String a, String b),求最小值。
... 阅读全帖 |
|
g*****i 发帖数: 2162 | 50 先谢谢了
1. 算POLYNOMIAL,比如5x^4+6x^3-7x^2-8=?
原文说思路是减少乘法变成x^2(x(5x+6)-7)-8, 然后找数据结构存数字和运算符.
我的问题是什么数据结构呢?是否要存prefix notation?
2.给你三个烤箱,每个烤箱可以同时烤两片面包,需要的时间分别是3分钟,4分钟和3
分钟。但第三个烤箱有一个slot出了点问题,每次只能烤面包的一面。所以这个烤箱三
分钟后只能算烤好一片半面包,你需要把那半片翻个面,在同一个slot里再烤一次才算
一片完整的。现在给你这三个烤箱,问烤好21片面包最少需要多少时间?如果是2100片
呢?如果是任意给定的N片,要求O(1)时间内给出最少需要的时间。
我的思路:12分钟正好20片没浪费,1-19事先算好存在array里.对吗?
3. read n lines of random numbers(space as delimiter) from a file, lines
with same numbers are treated as duplicated lines, regardless of the ... 阅读全帖 |
|