Problem Link (Click here)
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
#include <sstream>
using namespace std;
int main(){
string time;
string temp;
cin >> time;
temp = time;
if(time[8]=='A'){
time.erase (8,2);
if(time[0]=='1'&&time[1]=='2'){
time[0]='0';
time[1]='0';
}
cout<<time;
}
else{
time.erase (2,8);
stringstream ss(time);
int x;
ss >> x;
if(x!=12){
x=x+12;
}
cout<<x;
temp.erase (0,2);
temp.erase (6,2);
cout<<temp;
}
return 0;
}
Do you realize there's a 12 word sentence you can say to your partner... that will trigger intense feelings of love and impulsive attraction to you buried inside his chest?
ReplyDeleteThat's because hidden in these 12 words is a "secret signal" that fuels a man's instinct to love, admire and guard you with all his heart...
12 Words Will Fuel A Man's Desire Response
This instinct is so built-in to a man's brain that it will drive him to try better than before to build your relationship stronger.
Matter-of-fact, fueling this powerful instinct is so essential to having the best ever relationship with your man that the second you send your man one of the "Secret Signals"...
...You will immediately find him expose his mind and heart for you in such a way he's never experienced before and he'll recognize you as the only woman in the world who has ever truly tempted him.