From 3df2a85ddc93d38b4904bedcaeb04d95b1128301 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 4 Dec 2025 20:06:48 -0500 Subject: [PATCH] misc improvements --- codeforces/531/1102a.cc | 12 +++++------- codeforces/531/io/1102a.4.cpin | 1 + codeforces/531/io/1102a.4.cpout | 1 + 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 codeforces/531/io/1102a.4.cpin create mode 100644 codeforces/531/io/1102a.4.cpout diff --git a/codeforces/531/1102a.cc b/codeforces/531/1102a.cc index 1d4b071..5538547 100644 --- a/codeforces/531/1102a.cc +++ b/codeforces/531/1102a.cc @@ -1,4 +1,4 @@ -#include // {{{ +#include // {{{ #include #ifdef __cpp_lib_ranges_enumerate @@ -22,11 +22,9 @@ using f64 = double; using f128 = long double; #if __cplusplus >= 202002L -template -constexpr T MIN = std::numeric_limits::min(); +template constexpr T MIN = std::numeric_limits::min(); -template -constexpr T MAX = std::numeric_limits::max(); +template constexpr T MAX = std::numeric_limits::max(); #endif #ifdef LOCAL @@ -41,10 +39,10 @@ constexpr T MAX = std::numeric_limits::max(); void solve() { u32 n; cin >> n; - println("{}", n == 3 ? 0 : 1); + println("{}", u32((n % 4 % 3) > 0)); } -int main() { // {{{ +int main() { // {{{ std::cin.exceptions(std::cin.failbit); #ifdef LOCAL std::cerr.rdbuf(std::cout.rdbuf()); diff --git a/codeforces/531/io/1102a.4.cpin b/codeforces/531/io/1102a.4.cpin new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/codeforces/531/io/1102a.4.cpin @@ -0,0 +1 @@ +4 diff --git a/codeforces/531/io/1102a.4.cpout b/codeforces/531/io/1102a.4.cpout new file mode 100644 index 0000000..573541a --- /dev/null +++ b/codeforces/531/io/1102a.4.cpout @@ -0,0 +1 @@ +0