6
It will be accepted at most a include (or Resources file etc) that is native to the language (which is probably what will make all the interesting part) and the description of the problem shall be the code of the.
An example in C:
#include "magica.h"
inicia o programa
dado i igual 5
leia x
se x menor que i
imprime verdadeiro
senao
imprime falso
encerra
magic. h
#define inicia int
#define o
#define programa main(){
#define dado int
#define igual =
#define x
#define leia ,d=0;scanf("%d",&d);
#define se if(
#define menor d<
#define que
#define imprime
#define verdadeiro )printf("verdadeiro");
#define senao else
#define falso printf("falso");
#define encerra return 0;}
#include<stdio.h>
The challenge:
Dado um vetor com 20 elementos
no qual o primeiro eh 1 e o ultimo 20 e os
elementos intermediarios sao incrementos do mesmo
Seja i um inteiro,
para i de 3 a 15 faca
se o elemento i do vetor eh um numero primo
imprima i
fim do programa
Note:
Will be accepted small amendments to the text provided that they do not alter the meaning of the text. The most voted community response will be chosen before 7 July (one week).
This question seems to be discounted because it is about Code Golf, set in Stack Overflow Meta as out of scope.
– Leonel Sanches da Silva
@Gypsy omorrisonmendez, but it seems that most of the goal agrees in having code golf.
– DeMarco
Yes, the community is well divided on this aspect... I will take the bait: if the question is not closed until I have an answer, I will post. P
– mgibsonbr
It’s still a very divided question @Demarco as you can see in this answer
– Jorge B.
This question really shows how divided the community is: The question has 2 votes in favor (no votes against) and 4 votes to close.
– Mansueli
For those who don’t have enough reputation to see the positive and negative count of votes, which @Jorgeb. refers is that the item on Code Golf in the opinion poll is +19/-11, showing that both a lot of people want it and a lot of people don’t want it. Similarly, in this particular question 4 voted to close and 3 voted to leave open (so far).
– mgibsonbr
I think it’s interesting to have Code Golf Aki, since the existing community is in English and we don’t want to create an entirely new one just to use another language, I’ll see how it goes :)
– Olimon F.
I have said several times that I do not like this kind of question, but for coherence with the current vote on the goal, it should be open.
– Maniero
I read everything you wrote, but so far my question remains the same... What is the question?
– RodrigoBorth