首页 > 其他分享 >1083

1083

时间:2023-02-02 17:56:34浏览次数:34  
标签:std main 1083 int namespace include

#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main() {
    int a,b;
    cin>>a>>b;
    int c=1;
    for(int i=0;i<b;i++){
    	c=c*a;
	}
    if(c%7==0){
    	cout<<"Sunday";
	}else if(c%7==1){
    	cout<<"Monday";
	}else if(c%7==2){
		cout<<"Tuesday";
	}else if(c%7==3){
		cout<<"Wednesday";
	}else if(c%7==4){
		cout<<"Thursday";
	}else if(c%7==5){
		cout<<"Friday";
	}else if(c%7==6){
		cout<<"Sunday";
	}
    return 0;
}	

  

标签:std,main,1083,int,namespace,include
From: https://www.cnblogs.com/As10016/p/17086847.html

相关文章

  • 信奥赛 1083
    1083:计算星期几时间限制:1000ms      内存限制:65536KB提交数:76300   通过数:33677【题目描述】假设今天是星期日,那么过ab��天之后是星期几?【输......
  • 1083
    1#include<bits/stdc++.h>2#include<iomanip>3usingnamespacestd;4intmain(intargc,char**argv){5inta,b,x;6cin>>a>>b;7x=po......
  • fatal error C1083: Cannot open include file: 'soc_cfg.h': No such file or direct
    fatalerrorC1083:Cannotopenincludefile:'soc_cfg.h':NosuchfileordirectoryfatalerrorC1083:Cannotopenincludefile:'intr_reg.h':Nosuchfileordi......
  • 1083. Windy数
    题目链接1083.Windy数Windy定义了一种Windy数:不含前导零且相邻两个数字之差至少为\(2\)的正整数被称为Windy数。Windy想知道,在\(A\)和\(B\)之间,包括\(A\)......
  • CF1083C Max Mex
    题意给定一棵树,点权为\(0\simn-1\)的排列。每次交换两个点的点权或者询问整棵树上所有路径中,路径上点权的\(\operatorname{mex}\)最大值。Solution比较神奇的转化......
  • P1083 [NOIP2012 提高组] 借教室
    #include<iostream>usingnamespacestd;constintN=1e6+1;intn,m;inta[N];structnode{inttag,sum;node(){tag=sum=0;}v......
  • 4.错误代码C1083
    有的时候在VS中遇到的errorC1083:无法打开**:“*.*”:Nosuchfileordirectory的错误,这里总结了我遇到过的情况:错误 C1083 无法打开包括文件:“MyArray.h”:No......
  • 【Visual Studio 2022】 首次安装出现 fatal error C1083: 无法打开包括文件:“crtdbg
    VS2022包括的版本如下:Windows版本WindowsSDK版本Windows10版本1903Windows10SDK版本1903(10.0.18362.1)Windows10版本2004Windows10SDK版本2004(10......
  • CF1083C Max Mex
    传送门思路对线段树的功能理解又加深了假设我们枚举答案为\(x\),那么要满足有一条链包含了\(1\)~\(x-1\)的数我们考虑建立一棵线段树,下标为点权,区间记录的是\([l......