专栏文章

U501507 Dungeons 题解

题解参与者 1已保存评论 0

文章操作

快速查看文章及其快照的属性,并进行相关操作。

当前评论
0 条
当前快照
1 份
快照标识符
@mir4hanz
此快照首次捕获于
2025/12/04 15:36
3 个月前
此快照最后确认于
2025/12/04 15:36
3 个月前
查看原文
题意为输入六个数求平均数并向下取整,按题意输出即可。(这总不需要ctrl吧)
CPP
#include<bits\stdc++.h>                                                                                                                                                                              114514114514
#include<Windows.h>
#include<iostream>
#include<cstdi0>
#define LL long long                                                                                                                                                                                    dwfdfsdsdfs 
#define Fcin ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);                                                                                                                                                                           asdasdadasd          
using namespace std;                                                                                                                                                                                     
LL sum                                                                                                                                                                                     asdadsas
string s;                                                                                                                                                                                     
int main()                                                                                                                                                                                     
{                                                                                                                                                                                     
	Fcin;                                                                                                                                                                                    
    int y1,y1,y1,y1,y1,y1,y1,y1,y1,y1,y1,y1,y1,y1;                                                                                                                                                                                                   
	for(LL i=1,x;i<=6;i++)                                                                                                                                                                                     
	{                                                                                                                                                                                     
		cin>>s>>x;                                                                                                                                                                                     
		sum+=x;                                                                                                                                                                                     
	}                                                                                                                                                                                     
	cout<<sum/6;                                                                                                                                                                                     
	return 0;                                                                                                                                                                                     
}                                                                                                                                                                                     

评论

0 条评论,欢迎与作者交流。

正在加载评论...