Skip to main content
Commonmark migration
Source Link

##Introduction:

Introduction:

##Input:

Input:

##Output:

Output:

##Example:

Example:

##Challenge rules:

Challenge rules:

##General rules:

General rules:

##Test cases:

Test cases:

##Introduction:

##Input:

##Output:

##Example:

##Challenge rules:

##General rules:

##Test cases:

Introduction:

Input:

Output:

Example:

Challenge rules:

General rules:

Test cases:

Tweeted twitter.com/StackCodeGolf/status/1060910006055383040
added 197 characters in body
Source Link
Kevin Cruijssen
  • 131.4k
  • 13
  • 144
  • 384
  • You can use any four distinct and constant outputs for the four possible states.
  • Input can be in any reasonable format. Coordinates list can be tuples, inner lists/arrays of size 3, strings, objects, etc. List of years may be a list of date-objects instead of integers as well if it would benefit your byte-count.
  • You can assume the x,y,z coordinates will be integers, so no need to handle floating point decimals. Any of the x, y, and/or z coordinates can be negative values, though.
  • You cannot take the input-lists pre-ordered. The input-lists should be in the order displayed in the test cases.
  • You can assume all year values will be in the range [0,9999]; and you can assume all coordinates are in the range [-9999,9999].
  • If your language doesn't have ANY way to retrieve the current year, but you'd still like to do this challenge, you may take it as additional input and mark your answer as (non-competing).
  • You can use any four distinct and constant outputs for the four possible states.
  • Input can be in any reasonable format. Coordinates list can be tuples, inner lists/arrays of size 3, strings, objects, etc. List of years may be a list of date-objects instead of integers as well if it would benefit your byte-count.
  • You can assume the x,y,z coordinates will be integers, so no need to handle floating point decimals. Any of the x, y, and/or z coordinates can be negative values, though.
  • You cannot take the input-lists pre-ordered. The input-lists should be in the order displayed in the test cases.
  • You can assume all year values will be in the range [0,9999]; and you can assume all coordinates are in the range [-9999,9999].
  • You can use any four distinct and constant outputs for the four possible states.
  • Input can be in any reasonable format. Coordinates list can be tuples, inner lists/arrays of size 3, strings, objects, etc. List of years may be a list of date-objects instead of integers as well if it would benefit your byte-count.
  • You can assume the x,y,z coordinates will be integers, so no need to handle floating point decimals. Any of the x, y, and/or z coordinates can be negative values, though.
  • You cannot take the input-lists pre-ordered. The input-lists should be in the order displayed in the test cases.
  • You can assume all year values will be in the range [0,9999]; and you can assume all coordinates are in the range [-9999,9999].
  • If your language doesn't have ANY way to retrieve the current year, but you'd still like to do this challenge, you may take it as additional input and mark your answer as (non-competing).
added 135 characters in body
Source Link
Kevin Cruijssen
  • 131.4k
  • 13
  • 144
  • 384
  • You can use any four distinct and constant outputs for the four possible states.
  • Input can be in any reasonable format. Coordinates list can be tuples, inner lists/arrays of size 3, strings, objects, etc. List of years may be a list of date-objects instead of integers as well if it would benefit your byte-count.
  • You can assume the x,y,z coordinates will be integers, so no need to handle floating point decimals. Any of the x, y, and/or z coordinates can be negative values, though.
  • You cannot take the input-lists pre-ordered. The input-lists should be in the order displayed in the test cases.
  • You can assume all year values will be in the range [0,9999]; and you can assume all coordinates are in the range [-9999,9999].
  • You can use any four distinct and constant outputs for the four possible states.
  • Input can be in any reasonable format. Coordinates list can be tuples, inner lists/arrays of size 3, strings, objects, etc. List of years may be a list of date-objects instead of integers as well if it would benefit your byte-count.
  • You can assume the x,y,z coordinates will be integers, so no need to handle floating point decimals. Any of the x, y, and/or z coordinates can be negative values, though.
  • You cannot take the input-lists pre-ordered. The input-lists should be in the order displayed in the test cases.
  • You can use any four distinct and constant outputs for the four possible states.
  • Input can be in any reasonable format. Coordinates list can be tuples, inner lists/arrays of size 3, strings, objects, etc. List of years may be a list of date-objects instead of integers as well if it would benefit your byte-count.
  • You can assume the x,y,z coordinates will be integers, so no need to handle floating point decimals. Any of the x, y, and/or z coordinates can be negative values, though.
  • You cannot take the input-lists pre-ordered. The input-lists should be in the order displayed in the test cases.
  • You can assume all year values will be in the range [0,9999]; and you can assume all coordinates are in the range [-9999,9999].
Source Link
Kevin Cruijssen
  • 131.4k
  • 13
  • 144
  • 384
Loading