Talk:A+B: Difference between revisions

3,665 bytes added ,  7 months ago
(→‎Input Specification: maybe? (maybe not?))
imported>PauliKL
 
(11 intermediate revisions by 7 users not shown)
Line 1:
==task elegance==
This task is pretty elegant; I suspect it could handily replace both [[User Input]] and [[User Output]]. --[[User:Short Circuit|Michael Mol]] 16:49, 8 April 2010 (UTC)
 
 
==Formatting==
Line 13 ⟶ 15:
 
:: Ta! --[[User:Paddy3118|Paddy3118]] 21:46, 8 April 2010 (UTC)
 
 
===Input Specification===
Line 24 ⟶ 27:
:::I don't think we really need to worry about that. That's not really the point of the task. I say let it go ad let people input the numbers in whatever way is natural to the language. --[[User:Mwn3d|Mwn3d]] 16:21, 25 September 2011 (UTC)
:::: I don't know: what is the point of the task, actually? --[[User:Ledrug|Ledrug]] 16:45, 25 September 2011 (UTC)
::::: I still think that the way data is input (numbers separated by space) is the main point in this task. If the numbers could be entered with whatever method is the easiest for given language, then that requirement should not be given in the task description. Therefore, those implementations that expect comma or newline as separator, are clearly wrong. --[[User:PauliKL|PauliKL]] ([[User talk:PauliKL|talk]]) 15:18, 10 October 2023 (UTC)
 
::If it is competition input then those tasks are likely fails if they ''require'' a newline to be typed after the first number, before the second can be recognised, as I would have thought that, as the competition input states, only a space is given.
::What ''is'' wrong, is the task doesn't state how the input is terminated! --[[User:Paddy3118|Paddy3118]] 03:21, 26 September 2011 (UTC)
 
::: New line is not really required after two numbers, a Ctrl-D signaling end of input could do, too (^D itself is not read as part of input in any way). This task asks two input numbers in the same line, then adding them; both are pretty trival, but the latter is more so. I would have guessed the input part is more the point of the task. --[[User:Ledrug|Ledrug]] 03:53, 26 September 2011 (UTC)
 
:: It's not clear to me what the interpretation of "input stream" would be for a system that doesn't have streams or I/O redirection. Specifically, any computer running without an operating system, such as most microcontrollers. By the way, do I have to edit in the user info, date, and so on as I have done, or is there a better way to add a comment than just clicking "edit"? --[[User:Gatmo|Gatmo]] 03:13 21 January 2014 (PDT)
 
===Input specification ("constraints")===
Line 33 ⟶ 44:
 
: The task specifies that we need the sum of A and B and that they are between -1000 and 1000. It does NOT specify that we should not provide the sum when they are out of this range. I believe the intent was that outside of this range the behavior of the program is unspecified. --[[User:Rdm|Rdm]] 10:30, 13 May 2010 (UTC)
 
 
==Fabula?==
What is the meaning of [http://oxforddictionaries.com/noresults?dictionaryVersion=region-uk&isWritersAndEditors=true&noresults=true&page=1&pageSize=20&q=Fabula+&searchUri=All&sort=alpha&type=dictionarysearch fabula]? --[[User:Paddy3118|Paddy3118]] 03:09, 26 September 2011 (UTC)
:I see I asked this a year ago without reply. Time to delete? --[[User:Paddy3118|Paddy3118]] 03:11, 26 September 2011 (UTC)
::Google hit #1 for me: [[wp:Fabula and syuzhet]]. Looks like it's just a fancy word. No real reason to keep it or delete it besides personal preference. If you want to change it or delete it I don't think we'll lose anything. --[[User:Mwn3d|Mwn3d]] 03:51, 26 September 2011 (UTC)
:::[http://en.wiktionary.org/wiki/fabula ''Fabula''] is a Latin word for "story". Wikipedia's article "fabula and syuzhet" is not relevant. --[[User:Kernigh|Kernigh]] 17:47, 26 September 2011 (UTC)
::::Thanks Kernigh for the reference. I would have thought that the Oxford English Dictionary would have an entry for Latin words in 'common' usage, so I don't feel the need to put back the mention of it in the task. --[[User:Paddy3118|Paddy3118]] 18:09, 26 September 2011 (UTC)
 
 
== LabVIEW ==
While LabVIEW can add numbers, I'm pretty sure that it cannot read stdin (or if it can, it's well beyond my knowledge). Should I add LabVIEW code, mark it as <nowiki>{{omit from|LabVIEW|No Stdin}}</nowiki>, or just leave it for someone else? --[[User:Crazyfirex|Crazyfirex]] 03:20, 16 January 2012 (UTC)
 
 
==REXX==
Siskus: &nbsp; The REXX version 4 you flagged as ''incorrect'' is indeed correct, and it works as described and has been tested.
 
It accepted two numbers and summed them. &nbsp; The fact that it ''can'' accept more then two numbers is beneficial.
 
Please refain from flagging correct programs without checking them for accuracy or task compliance. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 16:05, 1 November 2013 (UTC)
Anonymous user