当前位置:网站首页>[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
100Sample output #1
-10Tips
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;
}边栏推荐
- The index is invalid
- 分布式数据库数据一致性的原理、与技术实现方案
- Construction of Meizhou nursing laboratory: equipment configuration
- AssertionError assert I.ndim == 4 and I.shape[1] == 3
- Some tools that research dogs may need
- FileOutPutStream
- 【FTP】FTP常用命令,持续更新中……
- Neural networks - use sequential to build neural networks
- LM小型可编程控制器软件(基于CoDeSys)笔记二十:plc通过驱动器控制步进电机
- VIM easy to use tutorial
猜你喜欢

C -- array

Dede collection plug-in does not need to write rules

PR 2021 quick start tutorial, learn about the and functions of the timeline panel

STM32 photoresistor sensor & two channel AD acquisition

Pytoch (I) -- basic grammar

LM small programmable controller software (based on CoDeSys) note 19: errors do not match the profile of the target
![[hard ten treasures] - 1 [basic knowledge] classification of power supply](/img/a8/f129c9d15ca6ed99db1dacfc750ead.png)
[hard ten treasures] - 1 [basic knowledge] classification of power supply

Section 27 remote access virtual private network workflow and experimental demonstration

Pytoch (IV) -- visual tool visdom

Neural network convolution layer
随机推荐
Construction of Meizhou nursing laboratory: equipment configuration
How do I sort a list of strings in dart- How can I sort a list of strings in Dart?
字符输入流与字符输出流
Leecode question brushing record 1310 subarray XOR query
STM32 extended key scan
分布式锁的实现
分布式全局唯一ID解决方案详解
神经网络-卷积层
JS to solve the problem of floating point multiplication precision loss
AssertionError assert I.ndim == 4 and I.shape[1] == 3
Why is Internet thinking not suitable for AI products?
Leecode question brushing record 1332 delete palindrome subsequence
RuntimeError: mean(): input dtype should be either floating point or complex dtypes.Got Long instead
RuntimeError: “max_pool2d“ not implemented for ‘Long‘
Difficulties in the development of knowledge map & the importance of building industry knowledge map
This sideline workload is small, 10-15k, free unlimited massage
分布式架构系统拆分原则、需求、微服务拆分步骤
Pytorch convolution operation
解决:拖动xib控件到代码文件中,报错setValue:forUndefinedKey:this class is not key value coding-compliant for the key
Pytoch (IV) -- visual tool visdom