cf/mirror

I've Been Flipping Numbers for 300 Years and Calculated the Sum

CF
2072G2200· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
12
3 2
42 52
1 10
4 4
16 2
69 69
9 3
19 84
9982 44353
100000 1000000007
17 30
777 1000000000000000000
Output
3
7594
9
6
1
33471
10
2006
120792461
584502117
775
46058362
2072G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)