106942024-04-09 19:25:22eokorÖntözés (50 pont)cpp17Accepted 50/5085ms3932 KiB


#include <iostream>
#include <fstream>

using namespace std;

struct mtul{
    int a, b, x, y;
};

int main()
{
    int q, m;
    cin>>q;
    cin>>m;
    mtul p;
    for(int i=1;i<=q;i++)
    {
        cin>>p.a>>p.x>>p.b>>p.y;
        cout<<(((p.b-p.a)*24+p.y-p.x)-1)/m<<endl;
    }
}
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/03ms1876 KiB
2Accepted0/014ms2120 KiB
3Accepted5/53ms2408 KiB
4Accepted5/564ms2492 KiB
5Accepted3/33ms2628 KiB
6Accepted3/33ms2868 KiB
7Accepted3/33ms2956 KiB
8Accepted3/33ms3068 KiB
9Accepted3/33ms3272 KiB
10Accepted3/33ms3352 KiB
11Accepted3/33ms3512 KiB
12Accepted1/13ms3472 KiB
13Accepted1/13ms3604 KiB
14Accepted1/13ms3532 KiB
15Accepted1/13ms3540 KiB
16Accepted2/279ms3692 KiB
17Accepted3/382ms3692 KiB
18Accepted2/285ms3692 KiB
19Accepted3/364ms3704 KiB
20Accepted1/176ms3824 KiB
21Accepted1/161ms3932 KiB
22Accepted3/364ms3908 KiB