当前位置:网站首页>【暑期每日一题】洛谷 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;
}边栏推荐
- PR 2021 quick start tutorial, learn about the and functions of the timeline panel
- Dede collection plug-in does not need to write rules
- 先有网络模型的使用及修改
- Leecode record 1351 negative numbers in statistical ordered matrix
- Basic usage, principle and details of session
- STM32扩展板 温度传感器和温湿度传感器的使用
- 分布式事务-解决方案
- 解决:拖动xib控件到代码文件中,报错setValue:forUndefinedKey:this class is not key value coding-compliant for the key
- LM小型可编程控制器软件(基于CoDeSys)笔记十九:报错does not match the profile of the target
- 2022 Shanghai safety officer C certificate examination question simulation examination question bank and answers
猜你喜欢
![AssertionError assert I.ndim == 4 and I.shape[1] == 3](/img/b1/0109bb0f893eb4c8915df36c100907.png)
AssertionError assert I.ndim == 4 and I.shape[1] == 3

Neural network - nonlinear activation

2022 G2 power station boiler stoker examination question bank and G2 power station boiler stoker simulation examination question bank

STM32扩展板 温度传感器和温湿度传感器的使用

2022 polymerization process test questions and simulation test

VIM简易使用教程

Common methods in transforms

神经网络-使用Sequential搭建神经网络

Sorting out 49 reports of knowledge map industry conference | AI sees the future with wisdom
![[hard ten treasures] - 1 [basic knowledge] classification of power supply](/img/a8/f129c9d15ca6ed99db1dacfc750ead.png)
[hard ten treasures] - 1 [basic knowledge] classification of power supply
随机推荐
Measurement of quadrature axis and direct axis inductance of three-phase permanent magnet synchronous motor
This sideline workload is small, 10-15k, free unlimited massage
C read / write application configuration file app exe. Config and display it on the interface
Neural networks - use of maximum pooling
LeetCode_ 28 (implement strstr())
2022 a special equipment related management (elevator) simulation test and a special equipment related management (elevator) certificate examination
Use of dataloader
How to view the changes and opportunities in the construction of smart cities?
Some tools that research dogs may need
[FTP] the solution to "227 entering passive mode" during FTP connection
Neural network - nonlinear activation
手动实现一个简单的栈
1076 Forwards on Weibo
[pat (basic level) practice] - [simple simulation] 1064 friends
2022 t elevator repair new version test questions and t elevator repair simulation test question bank
Daily algorithm & interview questions, 28 days of special training in large factories - the 13th day (array)
LM small programmable controller software (based on CoDeSys) note 20: PLC controls stepping motor through driver
分布式-总结列表
Construction of Meizhou nursing laboratory: equipment configuration
【硬十宝典】——1.【基础知识】电源的分类