#C. 求余数(abc)

    Type: Default File IO: abc 1000ms 256MiB

求余数(abc)

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

【题目描述】

六个正整数A、B、C、D、E、F满足 A×B×CD×E×FA\times B\times C \geq D\times E\times F ,求(A×B×C)(D×E×F)(A\times B\times C )-(D\times E\times F )被998244353除的余数。

【输入格式】

从文件abc.in中读入数据。

六个正整数A、B、C、D、E、F。

【输出格式】

输出到文件abc.out中。

输出一行答案,一个正整数。

【输入输出样例】

2 3 5 1 2 4
22
1 1 1000000000 0 0 0
1755647
1000000000000000000 
1000000000000000000 
1000000000000000000 
1000000000000000000 
1000000000000000000 
1000000000000000000
0

【数据范围】

对于100%的数据, 0A,B,C,D,E,F10180 \leq A, B, C , D, E, F \leq 10^{18}

C23本部OI练习赛

Not Attended
Status
Done
Rule
OI
Problem
4
Start at
2024-6-8 14:00
End at
2024-6-8 17:00
Duration
3 hour(s)
Host
Partic.
20