#include <stdio.h>
int main(){
int input[7], small[7], big[7], count = 0, sum = 0, small_sum = 0, big_sum = 0,transfer;
bool flag, divided, transfered;
while(true){
count++;
sum = 0, small_sum = 0, big_sum = 0;
flag = true;
for (int i = 1; i<=6; i++){
scanf("%d", &input[i]);
if (input ...
Search found 2 matches
- Sun Aug 24, 2008 8:40 am
- Forum: Volume 7 (700-799)
- Topic: 711 - Dividing up
- Replies: 25
- Views: 14625
- Thu Aug 21, 2008 8:06 pm
- Forum: Volume 1 (100-199)
- Topic: 147 - Dollars
- Replies: 233
- Views: 51004
Why 147 WA?
#include <stdio.h>
#include <math.h>
int main(){
long long result[6001];
float input = 0.0f;
int ans;
int notes[] = {1, 2, 4, 10, 20, 40, 100, 200, 400, 1000, 2000};
result[0] = 1;
for (int i = 1; i <= 6000; i++){
result[i] = 0;
}
for (int j = 0; j < 11; j++){
for (int i = notes[j]; i ...
#include <math.h>
int main(){
long long result[6001];
float input = 0.0f;
int ans;
int notes[] = {1, 2, 4, 10, 20, 40, 100, 200, 400, 1000, 2000};
result[0] = 1;
for (int i = 1; i <= 6000; i++){
result[i] = 0;
}
for (int j = 0; j < 11; j++){
for (int i = notes[j]; i ...