summaryrefslogtreecommitdiff
path: root/content/other/sos.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 21:17:29 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 21:17:29 +0100
commit1880ccb6d85c6eb79e724593457877bab431951c (patch)
tree23eddd5bd0b29b3024e170a5ef9023eda9226ab5 /content/other/sos.cpp
parente95f59debd69ee7d45d5c966ce466d23264e1c3c (diff)
get rid of all() and sz()
Diffstat (limited to 'content/other/sos.cpp')
-rw-r--r--content/other/sos.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/other/sos.cpp b/content/other/sos.cpp
index 01bc44c..892a47c 100644
--- a/content/other/sos.cpp
+++ b/content/other/sos.cpp
@@ -1,6 +1,6 @@
vector<ll> res(in);
-for (int i = 1; i < sz(res); i *= 2) {
- for (int mask = 0; mask < sz(res); mask++){
+for (int i = 1; i < ssize(res); i *= 2) {
+ for (int mask = 0; mask < ssize(res); mask++){
if (mask & i) {
res[mask] += res[mask ^ i];
}}}