当前位置:网站首页>L1-024 the day after tomorrow (5 points)
L1-024 the day after tomorrow (5 points)
2022-07-04 07:29:00 【Inter personal liabilities^】
L1-024 The day after tomorrow (5 branch )
If today is Wednesday , The day after tomorrow is Friday ; If today is Saturday , The day after tomorrow is Monday . We use Numbers 1 To 7 Monday to Sunday . Given a day , Please export that day “ The day after tomorrow ” What day is .
Input format :
The first line of input gives a positive integer D
(1 ≤ D
≤ 7), Represents a day of the week .
Output format :
Output in one line D
What day is the day after tomorrow .
sample input :
3
sample output :
5
AC Code
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<vector>
#include<stack>
#include<queue>
#include<sstream>
using namespace std;
typedef long long ll;
const int N=100010;
int main()
{
int n;
cin >> n;
n += 2;
if(n != 7) n %= 7;
cout << n << endl;
return 0;
}
边栏推荐
- MySQL storage engine
- "Sword finger offer" 2nd Edition - force button brush question
- The idea of implementing charts chart view in all swiftui versions (1.0-4.0) was born
- This article is enough for learning advanced mysql
- SQL foundation 9 [grouping data]
- Jianmu continuous integration platform v2.2.2 release
- [untitled] notice on holding "2022 traditional fermented food and modern brewing technology"
- Basic DOS commands
- [Mori city] random talk on GIS data (I)
- Introduction to sap commerce cloud B2B organization function
猜你喜欢
CMS source code of multi wechat management system developed based on thinkphp6, with one click curd and other functions
Introduction to spark core components
Zephyr Learning note 2, Scheduling
[kubernetes series] kubesphere is installed on kubernetes
BasicVSR++: Improving Video Super-Resolutionwith Enhanced Propagation and Alignment
Node foundation ~ node operation
Rhcsa the next day
Boosting the Performance of Video Compression Artifact Reduction with Reference Frame Proposals and
There is no Chinese prompt below when inputting text in win10 Microsoft Pinyin input method
A new understanding of how to encrypt industrial computers: host reinforcement application
随机推荐
Node connection MySQL access denied for user 'root' @ 'localhost' (using password: yes
Jianmu continuous integration platform v2.2.2 release
How does dataframe calculate the average value of each row as another column
jdbc连接es查询的时候,有遇到下面这种情况的大神嘛?
Xcode 14之大变化详细介绍
Set JTAG fuc invalid to normal IO port
University stage summary
Implementation of ZABBIX agent active mode
Introduction to deep learning Ann neural network parameter optimization problem (SGD, momentum, adagrad, rmsprop, Adam)
【森城市】GIS数据漫谈(一)
Handwritten easy version flexible JS and source code analysis
Introduction to spark core components
MYCAT middleware installation and use
Life planning (flag)
Rhcsa the next day
[MySQL transaction]
Zephyr 学习笔记2,Scheduling
Enter the year, month, and determine the number of days
MySQL中的文本处理函数整理,收藏速查
2022-021rts: from the second half of the year