当前位置:网站首页>【暑期每日一题】洛谷 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;
}边栏推荐
- How to do the performance pressure test of "Health Code"
- 2022 hoisting machinery command registration examination and hoisting machinery command examination registration
- Applications and features of VR online exhibition
- Difference between cookie and session
- RuntimeError: mean(): input dtype should be either floating point or complex dtypes. Got Long instead
- Technology sharing | broadcast function design in integrated dispatching
- LM小型可编程控制器软件(基于CoDeSys)笔记十九:报错does not match the profile of the target
- 字符输入流与字符输出流
- AssertionError assert I.ndim == 4 and I.shape[1] == 3
- [ue4] event distribution mechanism of reflective event distributor and active call event mechanism
猜你喜欢

2022.2.7-2.13 AI industry weekly (issue 84): family responsibilities

2022 t elevator repair question bank and simulation test

【硬十宝典】——2.【基础知识】开关电源各种拓扑结构的特点

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

神经网络-卷积层

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

神经网络-非线性激活
![AssertionError assert I.ndim == 4 and I.shape[1] == 3](/img/b1/0109bb0f893eb4c8915df36c100907.png)
AssertionError assert I.ndim == 4 and I.shape[1] == 3

测量三相永磁同步电机的交轴直轴电感

RuntimeError: “max_pool2d“ not implemented for ‘Long‘
随机推荐
The longest increasing subsequence and its optimal solution, total animal weight problem
Tencent has five years of testing experience. It came to the interview to ask for 30K, and saw the so-called software testing ceiling
STM32 extended key scan
Openresty rewrites the location of 302
Leecode question brushing record 1332 delete palindrome subsequence
Summary of acl2021 information extraction related papers
字符输入流与字符输出流
Shell之Unix运维常用命令
Pytoch (I) -- basic grammar
VIM easy to use tutorial
C#读写应用程序配置文件App.exe.config,并在界面上显示
VR线上展览所具备应用及特色
Question bank and online simulation examination for special operation certificate of G1 industrial boiler stoker in 2022
扩展-Fragment
手动实现一个简单的栈
AssertionError assert I.ndim == 4 and I.shape[1] == 3
Simple implementation of slf4j
PR 2021 quick start tutorial, learn about the and functions of the timeline panel
Thoughts on the construction of Meizhou cell room
Pytorch(三) —— 函数优化