1 solutions

  • 0
    @ 2025-11-27 11:54:18

    C++ :

    #include<bits/stdc++.h> 
    using namespace std;
    int main()
    {
    	int x,n;
    	cin>>x>>n;
    	int t=(x+n)%7;
    	if(t==0) t=7;
    	cout<<t; 
    	return 0;
    }
    
    
    • 1

    Information

    ID
    16
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By