-
-
3如题,在网上找到了相似的代码和一些测试数据,用来测试我的代码结果都正确,但是一提交就说是Wrong Answer 附代码: #include<stdio.h> #inclu
-
0#include <iostream> #include <cmath> using namespace std; #define pi 3.141592653589793239 double factorial(int i) { return 1 + l
-
2#include <iostream> #include <cstdio> #define maxn 100005 using namespace std; int fa[maxn]; void Init(int n) //帮派节点是0和1 {
-
0刚刚在uva上做了一题 uva 10104 问题是已知A,B 求X,Y使得AX+BY=gcd(A,B) 并且使|X|+|Y|最小 在网上看到资料说直接用扩展欧几里得定理求出的就是最小
-
0不是默认中文,而是有人翻译
-
7感激不尽,楼下有图
-
2
-
0#include <iostream> #include<string> using namespace std; string multiple_big(string s1, string s2); string remove_point(string
-
3麻烦大家帮我解答一下。你们在编程序的时候都用什么编译器呀。我写的程序在我的电脑上运行没问题。答案也对。但是poj上总说我Runingtime 是为什么呀?
-
1木棒 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 123318 Accepted: 28637 Description 乔治拿来一组等长的木棒,将它们随机地砍断
-
1题目的意思是这样的 给一堆点,小于等于15个,分别编号1~15 给一堆点之间的关系,组成一张无向图 从1号点出发遍历图,直到点n,结束的条件是n没有没被
-
2http://poj.org/problem?id=2003这一题求翻译啊啊啊啊
-
1http://poj.org/showmessage?message_id=46509
-
6ACM之家,www.acmerblog.com
-
0求poj2969测试数据
-
3各位前辈们好,晚辈前不久做了第1002题,然后一直努力优化程序,最终只能达到188ms的最快速度。所以非常希望能得到前辈们的指点,争取进入100ms以内,
-
1#include <iostream> #include <cstdio> #include <cmath> #include <algorithm> #include <string.h> using namespac
-
7这是我公开账号时的帖子: http://tieba.baidu.com/p/2069193349 这是我后续的一些囍贴: http://tieba.baidu.com/p/2350363270 现在我的密码及信息已
-
3rT~ 感觉0ms不太科学呀~ thx~
-
0#include <stdio.h> #include <string.h> #include <algorithm> using namespace std; int type[30],s[30][2],MAX[30][2]; int n,t
-
0#include<iostream> using namespace std; int main() { int n,a,s,w=0; int b[6]; cin>>n; while(n!=0) { ++w; cin>>b[0]; cin>
-
1求POJ的OJ系统,小弟想搭建一个OJ系统,不用很强大,只要包含核心的评测功能就可以 求哪位大神给发一份~~ 感激不尽~
-
0
-
4新人报到,求大神们多多指教!!感激不尽!! #include<iostream> #include<cstring> using namespace std; int main() { int i,dictlen;
-
0
-
2大一的刚接触表示压力山大
-
0var t,n,p,i,j:integer; g:array [1..100,0..300] of integer; link:array [1..300] of integer; use:array [1..300] of boolean; f:boolean; function find(k:integer):boolean; var i:integer; begin if k=0 then exit(true); for i:=1 to g[k,0] do if not(use[g[k,i]]) then begin use[g[k,i]]:=true; if find(link[g[k,i]]) then begin link[g[k,i]]:=k; exit(true); end; end; exit(false); end; begin read(t); while t<>0 do begin read(p,n); fillchar(g,sizeof(g),0); for i:=1 to p do begin read(g[i,0]); for j:=1 to g[i,0] do read(g[i,j]); end; fillchar(link,sizeof(link),0); f:=true; for i:=1 to p do begin fillchar
-
0#include <iostream> using namespace std; int main() { __int64 x,y,m,n,l; __int64 count = 0; scanf("%I64d%I64d%I64d%I64d%I64d",&x,&
-
0CCF关于CCF NOIP2013奖项评定的公告 CCF召开NOI科学委员会、竞赛委员会会议,划定CCF NOIP2013各奖项的获奖分数线。 1.按照初赛人数(25%)、复赛人数
-
0
-
0#include<iostream> #include<vector> #include<string> #include<algorithm> using namespace std; vector<string> i
-
0乐哈哈!乐哈哈!其实我也是来发求助帖子的! poj3299超级新手题 求神牛查错啊!!!! @帅芞の面包 @740340735 本菜c语言代码 #include<stdio.h&g
-
2
-
0rt
-
6#include "stdio.h" #include "stdlib.h" #include <string.h> #define MAX 450 int post[MAX]; int count = 0 ; int b[MAX][MAX]; char x[MAX]
-
3#include <iostream> #include <string.h> #include <stdio.h> #include <cmath> #include <algorithm> using namespa
-
4@_MaxT
-
9现在有SBT、高精度(可以像JAVA大数一样用~而且功能更多~~)、单调队列(用Template写的模板,自我感觉就和STL一模一样~~) 链接~ http://user.qzone
-
0半天才判一道题,交个题我容易吗?。。。
-
0poj1207:http://poj.org/problem?id=1207 这题的算法就用记忆化搜索,理论上可以过,但我提交总是WA 本来认为程序有问题,但后来发现凡是这种数据个
-
3那就是1298和3749其实是一模一样的!!! 传送门:http://poj.org/problem?id=1298 http://poj.org/problem?id=3749 感谢@喵喵护法
-
0知道是排序+贪心,但总报超时,不知何故,请哪位帮忙给看下,想法就是挑最晚结束的那个Cow,但不明白那里不对。多谢了 #include<stdio.h> #incl
-
0(5544×p+14421×e+1288×i)%(23×28×33)=n+d 这个等式 为什么通过POJ时 n=(5544×p+14421×e+1288×i)%(23×28×33)-d 不可以 而n=(5544×