167102025-05-09 18:18:37Gergo2122Micimackó (40 pont)cpp17Wrong answer 0/401ms564 KiB
#include <iostream>
#include <fstream>
#include <algorithm>
#include <vector>

using namespace std;

int main()
{
    int y,x,csupor,kapcsupor;
    cin>>y>>x;
    cin>>csupor>>kapcsupor;
    for(int i=2;i<x;i++){
        csupor--;
        if(i==y) csupor+=kapcsupor;
    }
    cout<<csupor;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/40
1Accepted0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/21ms316 KiB
4Wrong answer0/21ms316 KiB
5Wrong answer0/21ms316 KiB
6Wrong answer0/21ms316 KiB
7Wrong answer0/21ms316 KiB
8Wrong answer0/21ms316 KiB
9Wrong answer0/21ms316 KiB
10Wrong answer0/21ms340 KiB
11Wrong answer0/21ms404 KiB
12Wrong answer0/21ms316 KiB
13Wrong answer0/21ms508 KiB
14Wrong answer0/21ms316 KiB
15Wrong answer0/21ms316 KiB
16Wrong answer0/21ms316 KiB
17Wrong answer0/21ms316 KiB
18Wrong answer0/21ms328 KiB
19Wrong answer0/21ms316 KiB
20Wrong answer0/21ms316 KiB
21Wrong answer0/21ms316 KiB
22Wrong answer0/21ms564 KiB