当前位置:网站首页>【暑期每日一题】洛谷 P7222 [RC-04] 信息学竞赛
【暑期每日一题】洛谷 P7222 [RC-04] 信息学竞赛
2022-07-01 04:47:00 【AC_Dragon】
题目链接:P7222 [RC-04] 信息学竞赛 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn)
题目描述
小 R 今天学习了余角有关的数学知识,请你帮帮他计算一个角的余角吧!
一个角的余角的计算公式如下:
∠B=90°-∠A
其中 A 是给出的角,B 是你要计算的角。
输入格式
一行一个整数 x,表示 ∠A=x°。
输出格式
一行一个整数 y,表示 ∠B=y°。你需要严格按照公式计算。
样例 #1
样例输入 #1
100样例输出 #1
-10提示
对于 100% 的数据,x 在 C++ 语言的 int 范围内。即 x∈[-2^31,2^31-1]。
AC code:(这题主要考察不要忘了开long long...)
#include<iostream>
using namespace std;
int main()
{
long long x; // 一定要开long long,否则int边界进行运算可能会爆int!!!
cin>>x;
cout<<90-x<<endl;
return 0;
}边栏推荐
- 技术分享| 融合调度中的广播功能设计
- Use of dataloader
- Overview of the construction details of Meizhou veterinary laboratory
- Shell之分析服务器日志命令集锦
- PR 2021 quick start tutorial, learn about the and functions of the timeline panel
- CF1638E. Colorful operations Kodori tree + differential tree array
- The longest increasing subsequence and its optimal solution, total animal weight problem
- AssertionError assert I.ndim == 4 and I.shape[1] == 3
- How to do the performance pressure test of "Health Code"
- Pytorch neural network construction template
猜你喜欢

神经网络-非线性激活

Use of dataloader

Difficulties in the development of knowledge map & the importance of building industry knowledge map
![AssertionError assert I.ndim == 4 and I.shape[1] == 3](/img/b1/0109bb0f893eb4c8915df36c100907.png)
AssertionError assert I.ndim == 4 and I.shape[1] == 3

解决:拖动xib控件到代码文件中,报错setValue:forUndefinedKey:this class is not key value coding-compliant for the key

2022 t elevator repair question bank and simulation test

Extension fragment

VIM easy to use tutorial

Kodori tree board

Strategic suggestions and future development trend of global and Chinese vibration isolator market investment report 2022 Edition
随机推荐
Thoughts on the construction of Meizhou cell room
The design points of voice dialogue system and the importance of multi round dialogue
技术分享| 融合调度中的广播功能设计
Construction of Meizhou nursing laboratory: equipment configuration
Research on medical knowledge atlas question answering system (I)
Leecode question brushing record 1332 delete palindrome subsequence
[FTP] common FTP commands, updating continuously
先有网络模型的使用及修改
Summary of testing experience - Testing Theory
[2020 overview] overview of link prediction based on knowledge map embedding
分布式架构系统拆分原则、需求、微服务拆分步骤
对象的序列化与反序列化
Caijing 365 stock internal reference | the first IPO of Beijing stock exchange; the subsidiary of the recommended securities firm for gambling and gambling, with a 40% discount
AssertionError assert I.ndim == 4 and I.shape[1] == 3
Basic usage, principle and details of session
CF1638E. Colorful operations Kodori tree + differential tree array
Basic skeleton of neural network nn Use of moudle
解决:拖动xib控件到代码文件中,报错setValue:forUndefinedKey:this class is not key value coding-compliant for the key
【硬十宝典目录】——转载自“硬件十万个为什么”(持续更新中~~)
常用的Transforms中的方法