当前位置:网站首页>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;
}
边栏推荐
- Handwritten easy version flexible JS and source code analysis
- Flink memory model, network buffer, memory tuning, troubleshooting
- win10微软拼音输入法输入文字时候下方不出现中文提示
- Electronic Association C language level 1 34, piecewise function
- The idea of implementing charts chart view in all swiftui versions (1.0-4.0) was born
- When JDBC connects to es query, is there a God who meets the following situation?
- The important role of host reinforcement concept in medical industry
- 电子协会 C语言 1级 35 、银行利息
- 《剑指Offer》第2版——力扣刷题
- socket inet_ pton() inet_ Ntop() function (a new network address translation function, which converts the expression format and numerical format to each other. The old ones are inet_aton(), INET_ ntoa
猜你喜欢
win10微软拼音输入法输入文字时候下方不出现中文提示
Vulhub vulnerability recurrence 76_ XXL-JOB
Recursive Fusion and Deformable Spatiotemporal Attention for Video Compression Artifact Reduction
[MySQL transaction]
Zephyr 學習筆記2,Scheduling
[Valentine's day] - you can change your love and write down your lover's name
【森城市】GIS数据漫谈(一)
Handwritten easy version flexible JS and source code analysis
The IP bound to the socket is inaddr_ The meaning of any htonl (inaddr_any) (0.0.0.0 all addresses, uncertain addresses, arbitrary addresses)
Xcode 14之大变化详细介绍
随机推荐
Mysql database - function constraint multi table query transaction
Flink memory model, network buffer, memory tuning, troubleshooting
Industrial computer anti-virus
MySQL storage engine
How does dataframe calculate the average value of each row as another column
What is the use of cloud redis? How to use cloud redis?
Boosting the Performance of Video Compression Artifact Reduction with Reference Frame Proposals and
Novel website program source code that can be automatically collected
[Flink] temporal semantics and watermark
The crackdown on Huawei prompted made in China to join forces to fight back, and another enterprise announced to invest 100 billion in R & D
When JDBC connects to es query, is there a God who meets the following situation?
The difference between synchronized and lock
[FreeRTOS] FreeRTOS learning notes (7) - handwritten FreeRTOS two-way linked list / source code analysis
神经网络入门(下)
MySQL error resolution - error 1261 (01000): row 1 doesn't contain data for all columns
Introduction to sap commerce cloud B2B organization function
Types of references in BibTex
人生规划(Flag)
Literature collation and thesis reading methods
MYCAT middleware installation and use