Search found 4 matches

by SeaViperz
Sun May 11, 2003 9:45 am
Forum: Volume 3 (300-399)
Topic: 385 - DNA Translation
Replies: 11
Views: 2738

385 - DNA Translation

Hi all, Can someone please explain why my program is wrong? It works correctly only for the last two test datas. [cpp] /*@BEGIN_OF_SOURCE_CODE*/ #include <stdio.h> #include <string.h> int len; char strand[256]={'\0'}; char *seq[4][4][4]={ { {"Phe","Phe","Leu","Leu"},{"Ser","Ser","Ser","Ser"},{"Tyr",...
by SeaViperz
Wed Apr 09, 2003 5:16 pm
Forum: Volume 4 (400-499)
Topic: 402 - M*A*S*H
Replies: 56
Views: 13764

Why?

sjn:
who can tell me what is the output for
25 1 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 11 11 11 11
Adrian Kuegel:
Output is:
Selection #1
1 2 3 4 5 6 11 19
Can someone please explain why this should happen?
by SeaViperz
Thu Mar 20, 2003 11:41 am
Forum: Volume 4 (400-499)
Topic: 450 - Little Black Book
Replies: 57
Views: 6621

450 Little Black Book TLE

hi everyone, can someone tell me why I get TLE? Thanks! [cpp] #include <stdio.h> #include <string.h> class Guy{ public: char dept[100],title[10],fname[100],lsname[100],hfone[10],wfone[10],box[10],hadd[150]; void setGuy(char input[2000],char cdept[100]){ char *p; strcpy(dept,cdept); p=strtok(input,",...
by SeaViperz
Wed Jan 01, 2003 5:27 am
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 18454

412 Runtime Error (SIGFPE)

I got Runtime Error when i submitted. Can someone help me? thx! [cpp]#include <stdio.h> #include <math.h> int main(){ int setsize,arr[50]={0},i,j,k,search,tmp,pairs; while(scanf("%d",&setsize)==1){ if(setsize==0) break; for(i=0;i<setsize;i++) scanf("%d",&arr ); search=0; while(search==0){ search=1; ...

Go to advanced search