Skip to content

Commit 7408c07

Browse files
committed
enchanced template demo
1 parent be7789e commit 7408c07

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Library/Miscellanious/template_demo.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void solve() {
6161
// print sum
6262
int sum = 0;
6363
fo(i, n) fo(j, n) sum += a[i][j];
64-
pi(sum);
64+
deb(sum);
6565
}
6666

6767
// Fo demo - works in both direction (0 to 100) as well as (100, 0)
@@ -77,7 +77,16 @@ void solve() {
7777
{
7878
// (a * b) % mod == ( (a%mod) * (b%mod) ) % mod
7979
int mpow_result = mpow(2, 1000);
80-
pi(mpow_result);
80+
deb(mpow_result);
81+
}
82+
83+
// vector, pair
84+
{
85+
vpii ans = {{1, 1}, {-3, 9}, {10, 100}, {6, 36}};
86+
sortall(ans);
87+
88+
for(pii x: ans) printf("[%d, %d]", x.F, x.S);
89+
printf("\n");
8190
}
8291
}
8392

0 commit comments

Comments
 (0)