Submission #68734218


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
#define ff first
#define ss second
#define pb push_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define f(i,x,y) for(int i=x;i<y;i++)
#define f2(i,x,y) for(int i=x;i>=y;i--)
#define pii pair<int,int>
#define Fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
const int MOD =1000000007;
const int INF = 1e18;
const int N = 2e5;
 
void solve(int tc){
    int x,y; cin >> x >> y;
    x = (x + y) % 12;
    if(x == 0)x = 12;
    cout << x << endl;
        
}
int32_t main(){

    Fast

    int t=1;

    // cin >> t;

    for(int tc=1;tc<=t;tc++){

        solve(tc);
    }
    return 0;
}

Submission Info

Submission Time
Task A - What month is it?
User H_R_K
Language C++ 20 (gcc 12.2)
Score 100
Code Size 753 Byte
Status AC
Exec Time 5 ms
Memory 3452 KiB

Compile Error

Main.cpp: In function ‘void solve(long long int)’:
Main.cpp:18:16: warning: unused parameter ‘tc’ [-Wunused-parameter]
   18 | void solve(int tc){
      |                ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 15
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 5 ms 3360 KiB
00_sample_01.txt AC 1 ms 3328 KiB
00_sample_02.txt AC 1 ms 3332 KiB
01_random_00.txt AC 1 ms 3368 KiB
01_random_01.txt AC 1 ms 3452 KiB
01_random_02.txt AC 1 ms 3408 KiB
01_random_03.txt AC 1 ms 3328 KiB
01_random_04.txt AC 1 ms 3344 KiB
01_random_05.txt AC 1 ms 3360 KiB
01_random_06.txt AC 1 ms 3308 KiB
01_random_07.txt AC 1 ms 3364 KiB
01_random_08.txt AC 1 ms 3324 KiB
01_random_09.txt AC 1 ms 3364 KiB
01_random_10.txt AC 1 ms 3448 KiB
01_random_11.txt AC 1 ms 3372 KiB