Submission #36963279


Source Code Expand

#include<bits/stdc++.h>

typedef long long ll;

using namespace std;

void setIO(){
    ios::sync_with_stdio(0);
    cin.tie(0);
}

int main(){

    setIO();

    ll n;
    cin>>n;
    vector<ll> s(n);
    for(ll i=0;i<n;i++)cin>>s[i];
    cout<<s[0]<<" ";
    for(ll i=1;i<n;i++)cout<<(s[i]-s[i-1])<<" ";
    cout<<"\n";
    return 0;
}

Submission Info

Submission Time
Task B - Inverse Prefix Sum
User Sayantan108
Language C++ (GCC 9.2.1)
Score 200
Code Size 360 Byte
Status AC
Exec Time 8 ms
Memory 3588 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 13
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All min.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
min.txt AC 8 ms 3484 KiB
random_01.txt AC 6 ms 3416 KiB
random_02.txt AC 2 ms 3480 KiB
random_03.txt AC 2 ms 3480 KiB
random_04.txt AC 2 ms 3588 KiB
random_05.txt AC 2 ms 3416 KiB
random_06.txt AC 2 ms 3544 KiB
random_07.txt AC 2 ms 3420 KiB
random_08.txt AC 2 ms 3548 KiB
random_09.txt AC 2 ms 3576 KiB
random_10.txt AC 4 ms 3480 KiB
sample_01.txt AC 2 ms 3480 KiB
sample_02.txt AC 2 ms 3540 KiB