?? sum.cpp
字號:
#include <fstream.h>
#include <math.h>
#include <iostream.h>
void main()
{
ifstream input("input.txt");
ofstream output("output.txt");
unsigned long m;
input>>m;
for(unsigned long h=1,s=0;h<sqrt(2*m);h++)
if(((2*m-h*h)%h==0) && ((2*m-h*h)/h%2==1)) s++;
output<<s;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -