Submission #48107088


Source Code Expand

/*
  2023/12/2
  ABC331 A
*/


//#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int  INF = 2147483647;
const ll  INF2 = 9223372036854775807;
const ll  MOD = 998244353;
const int  MOD2 = 1000000007;
const double PI = 3.14159263589793;
const long double EPS = 1e-14;

int main(){
  int m,d;
  cin >> m >> d;

  int a,b,c;
  cin >> a >> b >> c;

  if(c == d){
    if(b == m){
      a++;
      b = 1;
      c = 1;
    }
    else{
      b++;
      c = 1;
    }
  }
  else{
    c++;
  }

  cout << a << " " << b << " " << c << endl;


}

Submission Info

Submission Time
Task A - Tomorrow
User tharuto
Language C++ 23 (gcc 12.2)
Score 100
Code Size 623 Byte
Status AC
Exec Time 1 ms
Memory 3588 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 3588 KiB
random_02.txt AC 1 ms 3460 KiB
random_03.txt AC 1 ms 3580 KiB
random_04.txt AC 1 ms 3504 KiB
random_05.txt AC 1 ms 3460 KiB
random_06.txt AC 1 ms 3448 KiB
random_07.txt AC 1 ms 3460 KiB
random_08.txt AC 1 ms 3496 KiB
sample_01.txt AC 1 ms 3476 KiB
sample_02.txt AC 1 ms 3464 KiB
sample_03.txt AC 1 ms 3452 KiB