diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-12-02 19:47:24 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-12-02 19:47:24 +0800 |
| commit | fbd3dab9f9c2a84b3f117462b29922d1e03984a6 (patch) | |
| tree | 2a29685de8ae1b6ea52ef4ea20f38ff6b275d474 /2024/2A.cpp | |
| parent | 1375a6e2cb1cf91b0dd001904a72762b368de8f2 (diff) | |
add: 2.cpp
Diffstat (limited to '2024/2A.cpp')
| -rw-r--r-- | 2024/2A.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/2024/2A.cpp b/2024/2A.cpp index 40ac6ca..be4594c 100644 --- a/2024/2A.cpp +++ b/2024/2A.cpp @@ -25,6 +25,7 @@ int main(int argc, char const *argv[]) increasing = true; else if (prev > n) decreasing = true; + // all conditions for unsafe lol if (std::abs(prev - n) > 3 || prev == n || (n > prev && decreasing || n < prev && increasing || increasing && decreasing || !increasing && !decreasing)) { safe = false; break; |
