当前位置:网站首页>[daily question in summer] Luogu p7222 [rc-04] informatics competition
[daily question in summer] Luogu p7222 [rc-04] informatics competition
2022-07-01 04:48:00 【AC_ Dragon】
Topic link :P7222 [RC-04] Informatics competition - Luogu | New ecology of computer science education (luogu.com.cn)
Title Description
Small R Today, I learned the mathematical knowledge about cosine , Please help him calculate the remainder of an angle !
The remainder of an angle is calculated as follows :
∠B=90°-∠A
among A Is the given angle ,B Is the angle you want to calculate .
Input format
One line, one integer x, Express ∠A=x°.
Output format
One line, one integer y, Express ∠B=y°. You need to calculate strictly according to the formula .
Examples #1
The sample input #1
100
Sample output #1
-10
Tips
about 100% The data of ,x stay C++ Linguistic int Within the scope of . namely x∈[-2^31,2^31-1].
AC code:( Don't forget to answer this question long long...)
#include<iostream>
using namespace std;
int main()
{
long long x; // Must open long long, otherwise int Boundary operation may explode int!!!
cin>>x;
cout<<90-x<<endl;
return 0;
}
边栏推荐
- Announcement on the list of Guangdong famous high-tech products to be selected in 2021
- 洗个冷水澡吧
- Query long transaction
- 【暑期每日一题】洛谷 P1568 赛跑
- LeetCode_ 66 (plus one)
- [pat (basic level) practice] - [simple simulation] 1064 friends
- Pytoch (III) -- function optimization
- Overview of the construction details of Meizhou veterinary laboratory
- 【暑期每日一题】洛谷 P5886 Hello, 2020!
- Cmake selecting compilers and setting compiler options
猜你喜欢
VIM简易使用教程
Basic skeleton of neural network nn Use of moudle
Research on medical knowledge atlas question answering system (I)
LM小型可编程控制器软件(基于CoDeSys)笔记十九:报错does not match the profile of the target
Kodori tree board
2022 tea master (intermediate) examination question bank and tea master (intermediate) examination questions and analysis
STM32扩展版 按键扫描
The longest increasing subsequence and its optimal solution, total animal weight problem
分布式锁的实现
Pytoch (IV) -- visual tool visdom
随机推荐
无器械健身
Pytorch(四) —— 可视化工具 Visdom
STM32扩展板 数码管显示
神经网络的基本骨架-nn.Moudle的使用
[hard ten treasures] - 1 [basic knowledge] classification of power supply
2022-02-15 (399. Division evaluation)
LeetCode_66(加一)
STM32 extended key scan
Shell之Unix运维常用命令
Common interview questions ①
Neural network convolution layer
LM小型可编程控制器软件(基于CoDeSys)笔记二十:plc通过驱动器控制步进电机
STM32扩展版 按键扫描
LeetCode_53(最大子数组和)
AssertionError assert I.ndim == 4 and I.shape[1] == 3
Applications and features of VR online exhibition
js解决浮点数相乘精度丢失问题
LeetCode_ 53 (maximum subarray and)
RuntimeError: mean(): input dtype should be either floating point or complex dtypes.Got Long instead
Announcement on the list of Guangdong famous high-tech products to be selected in 2021