This shows you the differences between two versions of the page.
cs-142:hot-peppers [2015/05/11 20:53] cs142ta created |
cs-142:hot-peppers [2015/05/12 19:14] (current) cs142ta |
||
---|---|---|---|
Line 9: | Line 9: | ||
==Solution== | ==Solution== | ||
<code cpp> | <code cpp> | ||
+ | /* | ||
+ | Test Case 1: | ||
+ | Input: -5 (negative example) | ||
+ | Output: red bell pepper | ||
+ | Actual: red bell pepper | ||
+ | |||
+ | Test Case 2: | ||
+ | Input: 0 (border case) | ||
+ | Output: red bell pepper | ||
+ | Actual: red bell pepper | ||
+ | |||
+ | Test Case 3: | ||
+ | Input: 2000000 | ||
+ | Output: trinidad | ||
+ | Actual: trinidad | ||
+ | |||
+ | Test Case 4: | ||
+ | Input: 2000001 | ||
+ | Output: no pepper | ||
+ | Actual: no pepper | ||
+ | */ | ||
+ | |||
#include <iostream> | #include <iostream> | ||
#include <string> | #include <string> |