I try to use brute force to caculate all possible arrangement, but I just can't get AC on this porblem. So, could anyone please give me a hint?
Besides, there seems to be some illegal input given, and how should I handle with them? Skip all the four line? Or skip only one line?
Search found 5 matches
- Mon May 19, 2003 6:01 pm
- Forum: Volume 4 (400-499)
- Topic: 418 - Molecules
- Replies: 7
- Views: 2454
- Fri Jan 31, 2003 4:39 am
- Forum: Volume 2 (200-299)
- Topic: 202 - Repeating Decimals
- Replies: 82
- Views: 25310
- Thu Jan 30, 2003 4:20 am
- Forum: Volume 2 (200-299)
- Topic: 202 - Repeating Decimals
- Replies: 82
- Views: 25310
202-- Where should place the parenthesis?
It said:
In writing the decimal expansion, enclose the repeating cycle in parentheses when possible. If the entire repeating cycle does not occur within the first 50 places, place a left parenthesis where the cycle begins - it will begin within the first 50 places - and place ``...)" after the 50th ...
In writing the decimal expansion, enclose the repeating cycle in parentheses when possible. If the entire repeating cycle does not occur within the first 50 places, place a left parenthesis where the cycle begins - it will begin within the first 50 places - and place ``...)" after the 50th ...
- Sat Aug 03, 2002 1:39 pm
- Forum: Volume 1 (100-199)
- Topic: 161 - Traffic Lights
- Replies: 28
- Views: 8177
- Sun Jul 28, 2002 11:44 am
- Forum: Volume 1 (100-199)
- Topic: 161 - Traffic Lights
- Replies: 28
- Views: 8177
161 keep wa...
I really have touble with this prob...
I don't know why I keep getting WA :(
[c]/* @JUDGE_ID: 8789ec 161 C */
#include<stdio.h>
#include<string.h>
int lights[128],lights2[128];
char buff[128];
void main(){
int i,count,now;
char *k;k=strtok(buff," ");
while(1){
for(count=0,i=0;count<101 ...
I don't know why I keep getting WA :(
[c]/* @JUDGE_ID: 8789ec 161 C */
#include<stdio.h>
#include<string.h>
int lights[128],lights2[128];
char buff[128];
void main(){
int i,count,now;
char *k;k=strtok(buff," ");
while(1){
for(count=0,i=0;count<101 ...