URAL 1335 — White Thesis
来源:互联网 发布:java数组末尾添加元素 编辑:程序博客网 时间:2024/06/04 18:52
原题:http://acm.timus.ru/problem.aspx?space=1&num=1335
题意:求任意一组A、B、C,满足条件A^2+B^2能被C整除,并且A、B、C三个数在区间[n*n, (n+1)*(n+1)]内。
没啥好说的,直接看代码吧 =3=
#include<stdio.h>int main(){int n;while(scanf("%d", &n)!=EOF){printf("%d %d %d\n", n*(n+1), n*(n+2), n*n);}return 0;}
0 0
- URAL 1335 — White Thesis
- Timus 1335. White Thesis
- 1335. White Thesis 会者不难 难者不会
- Ural 2063 Black and White
- URAL 1628 White Streaks(数据结构)
- Ural 2063 Black and White【有意思】
- White
- Java Thesis
- The Church-Turing Thesis
- Java thesis 续
- Writing a Thesis Statement
- Thesis relate to MRI
- Alec jacobson thesis analysis
- 9_The thesis
- Master's Thesis
- for the phd thesis
- URAL
- 【ural】
- Linux下./configure,make,make install的作用
- Android 字体
- iOS单元测试参考链接整理
- hdu 4635 Strongly connected (Tarjan+缩点)
- ACM--steps--dyx--1.3.6--第二小整数
- URAL 1335 — White Thesis
- 树莓派2 HDMI-VGA 转换器黑屏的排障方案
- 核心分析28篇
- 设计模式之策略模式
- Android TextView显示文字对齐
- hdu 3861 强连通分量缩点+二分匹配求最小路径覆盖
- ROC曲线和Gini系数之间的关系
- C++ Primer Plus第六版编程练习7.10解答
- JAVA 开发平台的技术和框架(四)三、ORM :JPA