Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Sandbox

Post History

71%
+3 −0
#17: Post edited by user avatar trichoplax‭ · 2023-07-06T13:29:29Z (over 1 year ago)
Add finalized tag now that the sandbox can be filtered to exclude tags
Operation "Find The Operator" [released]
# Challenge

Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.

- The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, integer division, modulo and exponentiation.
- You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
- The returning value is the operator that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
- Use whatever characters you want to use to determine the method that makes the equation truthy.
- If multiple operators make the equation truthy, then output them in any order.
- What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
- What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
- This is <a class="badge is-tag">code-golf</a> so the shortest program wins!

# Test Cases
```none
# Input (#, #, #)
// Output (+-*/%^ or .)

2 3 5
+

7 3 2
/

9 8 4
.

1 2 2
*

2 2 4
+ * ^

14 6 8
-

5 0 2
.

0 0 1
^

8 4 0
%

0 0 0
+ - *
```
#16: Post edited by user avatar General Sebast1an‭ · 2021-10-09T03:04:40Z (about 3 years ago)
  • Operation "Find The Operator"
  • Operation "Find The Operator" [released]
#15: Post edited by user avatar General Sebast1an‭ · 2021-10-08T13:19:07Z (about 3 years ago)
  • Operation "Find The Operator" [beta]
  • Operation "Find The Operator"
#14: Post edited by user avatar General Sebast1an‭ · 2021-10-07T13:51:30Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, integer division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the operator that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - If multiple operators make the equation truthy, then output them in any order.
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + * ^
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • 0 0 0
  • + - *
  • ```
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, integer division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the operator that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - Use whatever characters you want to use to determine the method that makes the equation truthy.
  • - If multiple operators make the equation truthy, then output them in any order.
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + * ^
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • 0 0 0
  • + - *
  • ```
#13: Post edited by user avatar General Sebast1an‭ · 2021-10-07T08:08:13Z (about 3 years ago)
  • Operation "Find The Operator"
  • Operation "Find The Operator" [beta]
#12: Post edited by user avatar General Sebast1an‭ · 2021-10-04T13:49:57Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, integer division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the operator that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - If multiple operators make the equation truthy, then output them in any order.
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + *
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • ```
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, integer division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the operator that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - If multiple operators make the equation truthy, then output them in any order.
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + * ^
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • 0 0 0
  • + - *
  • ```
#11: Post edited by user avatar General Sebast1an‭ · 2021-10-04T13:17:30Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, integer division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the operator that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • ```
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, integer division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the operator that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - If multiple operators make the equation truthy, then output them in any order.
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + *
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • ```
#10: Post edited by user avatar General Sebast1an‭ · 2021-10-03T09:50:17Z (about 3 years ago)
  • Operation "Find The Operator" (name still undecisive)
  • Operation "Find The Operator"
#9: Post edited by user avatar General Sebast1an‭ · 2021-10-02T16:04:36Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, integer division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • ```
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, integer division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the operator that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • ```
#8: Post edited by user avatar General Sebast1an‭ · 2021-10-01T18:08:06Z (about 3 years ago)
  • Make 3 numbers truthy in an equation (name still undecisive)
  • Operation "Find The Operator" (name still undecisive)
#7: Post edited by user avatar General Sebast1an‭ · 2021-10-01T16:14:08Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • ```
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, integer division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • ```
#6: Post edited by user avatar General Sebast1an‭ · 2021-09-30T15:10:39Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of 3 positive integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • ```
  • # Challenge
  • Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • ```
#5: Post edited by user avatar General Sebast1an‭ · 2021-09-30T15:10:03Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of 3 positive integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • ```
  • # Challenge
  • Make a program that takes input of 3 positive integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • 0 0 1
  • ^
  • 8 4 0
  • %
  • ```
#4: Post edited by user avatar General Sebast1an‭ · 2021-09-30T15:08:50Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of 3 integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • ```
  • # Challenge
  • Make a program that takes input of 3 positive integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • ```
#3: Post edited by user avatar General Sebast1an‭ · 2021-09-30T13:57:12Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of 3 integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing.
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • ```
  • # Challenge
  • Make a program that takes input of 3 integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing (whitespaces and newlines aren't allowed as such output).
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • ```
#2: Post edited by user avatar General Sebast1an‭ · 2021-09-30T13:56:29Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of 3 integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning values are 2: either a truthy or falsey value, and the method it makes it true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing.
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (t/f, +-*/%^ or .)
  • 2 3 5
  • true, +
  • 7 3 2
  • true, /
  • 9 8 4
  • false, .
  • 1 2 2
  • true, *
  • 2 2 4
  • true, + or *; you choose
  • 14 6 8
  • true, -
  • 5 0 2
  • false, .
  • ```
  • # Challenge
  • Make a program that takes input of 3 integers: a result and 2 other values that once calculated results to the 3rd value.
  • - The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
  • - You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
  • - The returning value is the method that makes the equation true (it's best to use some distinguishable character to separate it from the other methods).
  • - What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
  • - What to return when it's false? Something but not nothing.
  • - This is <a class="badge is-tag">code-golf</a> so the shortest program wins!
  • # Test Cases
  • ```none
  • # Input (#, #, #)
  • // Output (+-*/%^ or .)
  • 2 3 5
  • +
  • 7 3 2
  • /
  • 9 8 4
  • .
  • 1 2 2
  • *
  • 2 2 4
  • + or *; you choose
  • 14 6 8
  • -
  • 5 0 2
  • .
  • ```
#1: Initial revision by user avatar General Sebast1an‭ · 2021-09-30T12:10:25Z (about 3 years ago)
Make 3 numbers truthy in an equation (name still undecisive)
# Challenge

Make a program that takes input of 3 integers: a result and 2 other values that once calculated results to the 3rd value.

- The program must figure out how to get the 2 first numbers to equivalence itself with the 3rd. It could be either addition, subtraction, multiplication, division, modulo and exponentiation.
- You can't change the places of the 2 variables when building the equation, meaning you can't get some value by intertwining in the methods excluding addition and multiplication.
- The returning values are 2: either a truthy or falsey value, and the method it makes it true (it's best to use some distinguishable character to separate it from the other methods).
- What makes it true? If an equation exists within the 2 numbers that results to the value of the 3rd.
- What to return when it's false? Something but not nothing.
- This is <a class="badge is-tag">code-golf</a> so the shortest program wins!

# Test Cases
```none
# Input (#, #, #)
// Output (t/f, +-*/%^ or .)

2 3 5
true, +

7 3 2
true, /

9 8 4
false, .

1 2 2
true, *

2 2 4
true, + or *; you choose

14 6 8
true, -

5 0 2
false, .
```