Submission #48098589


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

#define rep(i,n) for(ll i=0;i<n;++i)
#define rrep(i,n) for(ll i=n-1;i>=0;--i)
#define FOR(i,s,e) for(ll i=s;i<=e;++i)
#define FFOR(i,s,e) for(ll i=s;i>=e;--i)

#define yesno(flg) if(flg){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}
#define ALL(a) (a).begin(),(a).end()
#define mp make_pair
#define pb push_back
#define vl vector<ll>
#define vs vector<string>
#define so(a) sort(a.begin(),a.end())

#define fi first
#define se second
#define print(a) cout<<a<<endl
#define ssize(a) (ll)(a.size())

#define MAX_N 1002
#define i197 1000000007
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

typedef pair<int,int> Pi;
typedef pair<ll, ll> P2;
typedef pair<P2,ll> P3;
typedef pair<P2,P2> P4;

const ll INF=1000000000000000001;


int main(){

	ios::sync_with_stdio(0);
	cin.tie(0);


	ll m,d;
	cin>>m>>d;


	ll y,m1,d1;
	cin>>y>>m1>>d1;

	if(m1==m && d1==d)cout<<y+1<<" "<<1<<" "<<1<<endl;
	else if(d1==d)cout<<y<<" "<<m1+1<<" "<<1<<endl;
	else cout<<y<<" "<<m1<<" "<<d1+1<<endl;




	return 0;
}






























Submission Info

Submission Time
Task A - Tomorrow
User akarinkof
Language C++ 20 (gcc 12.2)
Score 100
Code Size 1306 Byte
Status AC
Exec Time 1 ms
Memory 3528 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 11
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
random_01.txt AC 1 ms 3468 KiB
random_02.txt AC 1 ms 3476 KiB
random_03.txt AC 1 ms 3400 KiB
random_04.txt AC 1 ms 3444 KiB
random_05.txt AC 1 ms 3464 KiB
random_06.txt AC 1 ms 3392 KiB
random_07.txt AC 1 ms 3528 KiB
random_08.txt AC 1 ms 3388 KiB
sample_01.txt AC 1 ms 3332 KiB
sample_02.txt AC 1 ms 3464 KiB
sample_03.txt AC 1 ms 3328 KiB