当前位置:网站首页>[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;
}边栏推荐
- Design experience of Meizhou clinical laboratory
- The longest increasing subsequence and its optimal solution, total animal weight problem
- 【暑期每日一题】洛谷 P1568 赛跑
- Use and modification of prior network model
- Collect the annual summary of laws, regulations, policies and plans related to trusted computing of large market points (national, ministerial, provincial and municipal)
- JVM栈和堆简介
- Codeforces Round #771 (Div. 2) ABCD|E
- Extension fragment
- [FTP] common FTP commands, updating continuously
- VIM easy to use tutorial
猜你喜欢

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

RuntimeError: mean(): input dtype should be either floating point or complex dtypes. Got Long instead

Dataloader的使用

pytorch中常用数据集的使用方法

RuntimeError: “max_pool2d“ not implemented for ‘Long‘

Pytoch (I) -- basic grammar

The design points of voice dialogue system and the importance of multi round dialogue

2022 tea master (intermediate) examination question bank and tea master (intermediate) examination questions and analysis

VIM easy to use tutorial

JVM栈和堆简介
随机推荐
Matters behind the construction of paint testing laboratory
分布式事务-解决方案
Summary of testing experience - Testing Theory
线程安全问题
Kodori tree board
线程类的几大创建方法
Technology sharing | broadcast function design in integrated dispatching
pytorch 卷积操作
RuntimeError: mean(): input dtype should be either floating point or complex dtypes.Got Long instead
科研狗可能需要的一些工具
Difficulties in the development of knowledge map & the importance of building industry knowledge map
The longest increasing subsequence and its optimal solution, total animal weight problem
字符输入流与字符输出流
LeetCode_ 35 (search insertion position)
Codeworks round 449 (Div. 1) C. Kodori tree template
[ue4] event distribution mechanism of reflective event distributor and active call event mechanism
Extension fragment
常用的Transforms中的方法
Codeforces Round #771 (Div. 2) ABCD|E
对象的序列化与反序列化