Search found 23 matches

by Frostina
Wed Dec 31, 2003 1:45 am
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 43716

Can't string do it ??@_________@

Should I change my code to this ??

[cpp] char str[1000001] [/cpp]
by Frostina
Tue Dec 30, 2003 6:41 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 43716

10013 Runtime error :(

@___@ Why... plz help me... [cpp] #include <iostream> #include <string> using namespace std; int main() { long n,m,i,j; int t1,t2; string str; cin >> n; for (i=0;i<n;i++) { cin >> m; for (j=0;j<m;j++) { cin >> t1 >> t2; if (t1+t2<10) str[j] = (t1+t2+48); else { str[j] = (t1+t2+38); str[j-1]++; } } f...
by Frostina
Wed Dec 24, 2003 9:39 am
Forum: Volume 6 (600-699)
Topic: 661 - Blowing Fuses
Replies: 67
Views: 21584

661 - Blowing Fuses

please tell me why... thx ... ^^" [cpp] #include <iostream> using namespace std; int main() { long n,m,c,s,i,max; int t,k=0; while (cin>>n>>m>>c) { if (!n&&!m&&!c) break; int *on = new int[n]; int *power = new int[n]; for (i=0;i<n;i++) { on = -1; cin >> power ; } for (i=0,s=0,max=0;i<m;i++) { cin >>...
by Frostina
Mon Dec 15, 2003 1:29 pm
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 24573

Try this ... ^^"

[c]
char t[1000000];
[/c]
by Frostina
Mon Dec 15, 2003 1:20 pm
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 36015

530

why ? ... ^^" Please help me... T____T [cpp] #include <iostream> using namespace std; int combi(int n,int m) { long i,p; for (i=1,p=1;i<=m;i++) p = p*(n-i+1)/i; return p; } int main() { long n,m; while (cin>>n>>m) { if (m==0&&n==0) break; if (m==0) cout << 1 << endl; else cout << combi(n,m) << endl;...
by Frostina
Mon Dec 15, 2003 1:17 pm
Forum: Volume 105 (10500-10599)
Topic: 10550 - Combination Lock
Replies: 24
Views: 22077

I'm confused with clockwise and counter-clockwise... here is my code, and it's AC ... But I still can't realise why ..... @_____@ [cpp] #include <iostream> using namespace std; int turn (int a,int b,int d) { if (d) { // clockwise if (b>a) return (b-a); else return (40-a+b); } else { if (a>b) return ...
by Frostina
Mon Dec 15, 2003 1:03 pm
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 9149

Thank you very much .... ^^y

Now I get AC ...^^
by Frostina
Mon Dec 15, 2003 5:24 am
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 9149

#357 .. Why runtime error T____T?

please help me .... lol [cpp] #include <iostream> using namespace std; int main() { int change[100]; int i; for (i=0;i<100;i++) change = 1; for (i=5;i<100;i++) change +=change[i-5]; for (i=10;i<100;i++) change +=change[i-10]; for (i=25;i<100;i++) change +=change[i-25]; for (i=50;i<100;i++) change +=...

Go to advanced search