Search found 2 matches

by Park, Kwang-Kyu
Sat Jul 19, 2003 11:03 am
Forum: Volume 103 (10300-10399)
Topic: 10394 - Twin Primes
Replies: 101
Views: 32649

10394

I think my source makes output in time, but I got TLE. ㅜ_ㅜ plz check this. [cpp]#include <iostream> #include <cmath> using namespace std; int prime1[10000]; bool prime2[20000000]; void main(void) { int c1, c2; int input=0; bool p; for(c1=2; c1<=4473; c1++) { p=true; for(c2=2; c2<sqrt(c1); c2++) { if...
by Park, Kwang-Kyu
Tue Jul 15, 2003 2:58 pm
Forum: Volume 1 (100-199)
Topic: 177 - Paper Folding
Replies: 28
Views: 7713

177 WA

Would you check my output. I think it works well, but i got WA. -_-;;; [cpp]#include <iostream> #include <string> using namespace std; int input; string output; char screen[1000][500]; void toscreen(string str) { int x, y, c1; int xx, yy; int maxx=0; int maxy=0; int minx=10000; int miny=10000; x=800...

Go to advanced search