here is my code:
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cstring>
using namespace std;
int main (void){
int num;
cin >> num;
vector <int> nista;
vector <vector <int> > pozicije (num, nista);
for (int i=0; i<num; i ...
Search found 3 matches
- Tue Aug 08, 2006 10:38 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 110654
- Sun Aug 29, 2004 12:38 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 84586
- Thu Aug 26, 2004 9:02 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10062 - Tell me the frequencies!
- Replies: 235
- Views: 70202
10062 WA
Can anybody help me? I have WA with this code :-?
[c]
#include <stdio.h>
#include <string.h>
int main (void){
int m[1500], i, len, count=1, max=0, njulajn=0;
char s[1500];
while (!feof(stdin)){
njulajn++;
if (njulajn>1)
printf ("\n");
memset (m, 0, sizeof(m));
gets(s);
len=strlen(s ...
[c]
#include <stdio.h>
#include <string.h>
int main (void){
int m[1500], i, len, count=1, max=0, njulajn=0;
char s[1500];
while (!feof(stdin)){
njulajn++;
if (njulajn>1)
printf ("\n");
memset (m, 0, sizeof(m));
gets(s);
len=strlen(s ...