From 984787b762693d81e09adcb7d7ca45702a207247 Mon Sep 17 00:00:00 2001 From: Jihoon Lee Date: Sat, 6 Jul 2024 00:17:05 +0900 Subject: [PATCH] Add 16787.cpp --- 16xxx/16787.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 16xxx/16787.cpp diff --git a/16xxx/16787.cpp b/16xxx/16787.cpp new file mode 100644 index 00000000..40cf967c --- /dev/null +++ b/16xxx/16787.cpp @@ -0,0 +1,24 @@ +#include +#include +using namespace std; + +void solve(void) { + int n; cin >> n; + string s; cin >> s; + + int ans = 0; + for (int i=1; i