当前位置:网站首页>[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;
}边栏推荐
猜你喜欢

STM32 光敏电阻传感器&两路AD采集

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

先有网络模型的使用及修改

C#读写应用程序配置文件App.exe.config,并在界面上显示

Pytorch(一) —— 基本语法

Neural network - nonlinear activation

2022 t elevator repair new version test questions and t elevator repair simulation test question bank

Dataloader的使用

Neural network convolution layer

VIM easy to use tutorial
随机推荐
One click shell to automatically deploy any version of redis
Summary of testing experience - Testing Theory
分布式锁的实现
LeetCode_53(最大子数组和)
Construction of Meizhou nursing laboratory: equipment configuration
分布式架构系统拆分原则、需求、微服务拆分步骤
Fitness without equipment
Query long transaction
Data loading and preprocessing
All in all, the low code still needs to solve these four problems
Registration of P cylinder filling examination in 2022 and analysis of P cylinder filling
分布式数据库数据一致性的原理、与技术实现方案
[ue4] event distribution mechanism of reflective event distributor and active call event mechanism
先有网络模型的使用及修改
【暑期每日一题】洛谷 P5740【深基7.例9】最厉害的学生
LeetCode_66(加一)
【FTP】FTP连接时出现“227 Entering Passive Mode”的解决方法
[2020 overview] overview of link prediction based on knowledge map embedding
Dataloader的使用
LeetCode_ 58 (length of last word)