#include <iostream>
using namespace std;

int main() {
    int h = 0;
    int m = 20;
    int t = h * 60 + m;
    t = t - 30;

    if(t<0){
        t = t + 24*60;
    } 
    cout << t/60 << ":" << t%60;

    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: