摘要: Leading and Trailing You are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits o 阅读全文
posted @ 2016-08-12 20:09 jhz033 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 青蛙的约会 Time Limit: 1000MS Memory Limit: 10000K Description 两 只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它 们出发之前忘记了一件很重要的事情, 阅读全文
posted @ 2016-08-12 18:59 jhz033 阅读(182) 评论(0) 推荐(0) 编辑
摘要: C Looooops Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 23616 Accepted: 6517 Description A Compiler Mystery: We are given a C-language s 阅读全文
posted @ 2016-08-12 18:28 jhz033 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Death to Binary? Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 1707 Accepted: 529 Description The group of Absurd Calculation Maniacs has 阅读全文
posted @ 2016-08-12 17:20 jhz033 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1141 题意:判断区间[a,b]的f(i)是否为素数,f(i)=i*i+i+40; 思路:打个表 阅读全文
posted @ 2016-08-12 10:17 jhz033 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2927 题意:给你n行,每行有一些数,求这些数两两的最大公约数最大; 思路:字符串模拟,不然wa 阅读全文
posted @ 2016-08-12 10:14 jhz033 阅读(170) 评论(0) 推荐(0) 编辑
摘要: D. Vasiliy's Multiset time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output Author has gone ou 阅读全文
posted @ 2016-08-12 09:55 jhz033 阅读(195) 评论(0) 推荐(0) 编辑
摘要: A. Beru-taxi time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasiliy lives at point (a, b 阅读全文
posted @ 2016-08-12 09:50 jhz033 阅读(471) 评论(0) 推荐(0) 编辑