nefu 702 The minimum square sum
来源:互联网 发布:centos设置ip地址命令 编辑:程序博客网 时间:2024/06/15 13:07
#include <iostream>using namespace std;int main(){ long long m; while(cin>>m) { if(m%4==1||m==2) cout<<m<<endl; else cout<<2*m*m<<endl; } return 0;}
0 0
- 【数论】 nefu 702 The minimum square sum
- nefu 702 The minimum square sum
- nefu702 The minimum square sum(数论)
- NEU 1440 The minimum square sum (平方剩余和欧拉准则)
- 【NEU1440】The minimum square sum (平方剩余和欧拉准则)
- vjudge 4965.Sum the Square | 使用map
- The minimum depth The maximum path sum path sum II
- Sum of Square
- Sum of Square
- Sum of Square Numbers
- Given a tree, find the node with the minimum sum of distances to other nodes
- hdu 3473 Minimum Sum
- hdu 3473 Minimum Sum
- LeetCode: Minimum Path Sum
- LeetCode Minimum Path Sum
- LeetCode : Minimum Path Sum
- [Leetcode] Minimum Path Sum
- Minimum Path Sum
- 小记
- linux 下安装mysql源码
- ruby thin的配置
- 黑马程序员——java网络编程
- iOS开发零基础教程之生成git所需的SSH keys
- nefu 702 The minimum square sum
- 【从0到1学Web前端】CSS伪类和伪元素
- 黑马程序员----IO流(二)
- HDU-1033-Edge(C++ && 简单模拟 && 题意恶心)
- HorizontalListView(包含setSelection功能)
- NSMutableSet 学习
- What is the difference between the three mentioned verbs?
- WebSphere MQ基础命令
- C++ sort函数以及stringstream的使用