МКАД

mail@pastecode.io avatar
unknown
c_cpp
a year ago
202 B
4
Indexable
Never
#include <iostream>

using namespace std;

int main() {
    int v, t;
    cin >> v >> t;
    int s = v * t;
    cout << (s % 109 + 109) % 109;
    return 0;
}

/*
a b
(a % b + b) % b
*/