Sum of two numbers
The first line of input contains "t" which is the number of test cases. "t" test cases follow. Each test case is of the form "a b", a and b of type integers and are separated by space. For each pair of a and b read them and print their sum on a different line.
Write the code ...
What day do I get my sandwich?
Given input "Sweet Onion Chicken Teriyaki", "Oven Roasted Chicken", "Turkey Breast", "Italian B.M.T", "Tuna", "Black Forest Ham", or "Meatball Marinara", output a number from 1-7 (or 0-6) representing the day of the week that you get that deal, starting with Mond...
@ATaco APL isn't a golfing language. The newly added primitives have not been added to the character set, even though there is room. (Because backwards compatibility must be maintained.) Also, some obvious (and less obvious) overloading has not been done, and special functionality and system services have long names.
@cairdcoinheringaahing You can do it without that though... In the end it's just inclusive range, negate each, reverse and concatenate with a normal range, isn't it?
FWIW I wanted to show you a kind of CMC for which stacks aren't the best.
Unless the challenge requires manipulating their names, in which case, it's up to you.
@ZachGates Why would you even bother to parse the names? It just adds some fluff. IMO, let them choose. Of course, it's your challenge so you decide though
Given an integer, n, where 3 <= n < 2^32, calculate the area of a regular n-gon with an apothem of 1. For those that don't know what the apothem is:
The apothem of a regular polygon is a line segment from the center to the midpoint of one of its sides.
Output the area of the n-gon as a floa...
@ZachGates By combinatorial games, I means the games available at Simon Tatham's website. Are they doable in tkinter ? (Also, Sorry I am new to coding don't understand what do you mean by using other UI libraries ?)
Also, I am planning to create a "Graph Simulator" (graph means combinatorial graphs) in tkinter, where you (a) Create Graphs and move them around using mouse (b) Color the edges/vertices as you like and name them (c) Make some edges directed. What should I learn to do it in tkinter ? [cc: @LeakyNun]
I'm honestly surprised that some frown upon answering your own question, but have no problem answering in multiple different languages. That's a tad discouraging.
@ZachGates Because a person actually (no pun intended) has to develop a program in each of those languages after the challenge is posted, whereas answering your own question could say that you've already prepared an answer that will win. For instance, if I posted a question which had a single builtin in one of my languages, I should let other people try to find it, rather than winning instantly.
Introduction
My calculator is behaving weird. Sometimes when I type in an 8 it displays a 2. And sometimes when I type in a 6 it displays a +. Some buttons are mixed up!
Could anyone help me determine which?
Challenge:
Input: List of incorrect equations, with correct results.
Output: The two ...
@Mr.Xcoder It wasn't even released on PPCG when I posted that challenge, and people started to only use practical languages after a while, because golfing langs got rid of really short byte counts
Challenge:
Write code that can run in many language interpreters/compilers,But same output must be same.
For example: (C & Python)
main.c.py:
#if 0
print "Hello World!"
"""
#endif
#include <stdio.h>
int main()
{
printf("Hello World!");
}
#if 0
"""
#endif
C:
gcc main.c.py -o main.exe
m...
@Mr.Xcoder that's indeed the spirit, but not what I was expecting. Looks like the any locale is what I'm closest to in terms of needs. Thank you anyways! :)
I've been thinking for a long time that our non-competing policy for newer languages (or language versions) is harmful. Just for context, we currently require all answers which require implementations that are newer than a challenge to be marked as non-competing. At the core there was a good inte...
A see-through display is an electronic display that allows the user to see what is shown on the glass screen while still being able to see through it. It is a technology that has been around for a decade or two, but only as of 2012 was it being incorporated by companies such as Samsung, Planar Systems, and taptl into consumer products like handheld devices, televisions, and other technology as well as building materials such as glass. These screens can be used for augmented reality, a way of enhancing your view of the world with digital images overlaid onto real ones, and other applications such...
Yes! There's an actual Wikipedia article for that.