updated some plugins

This commit is contained in:
Code Lich 2025-03-25 16:43:16 +07:00
parent fe1b7ae89e
commit 78d8949d8d
2 changed files with 15 additions and 0 deletions

View File

View File

@ -25,4 +25,19 @@ ls.add_snippets('cpp', {
'}',
},
}),
s('binpow', {
t {
'll binpow(ll a, ll b, ll c) {',
' ll res = 1;',
' while (b != 0) {',
' if (b & 1) {',
' res = (res * a) % c;',
' }',
' b = b >> 1;',
' a = (a * a) % c;',
' }',
' return res;',
'}',
},
}),
})