Search found 2 matches

by FahimSifnatul
Wed Jul 13, 2016 10:30 am
Forum: Volume 4 (400-499)
Topic: 488-Triangle wave (continuously getting presentation error)
Replies: 1
Views: 869

488-Triangle wave (continuously getting presentation error)

am i going to mad?? continuously getting presentation error....please help me--- #include<iostream> using namespace std; int main() { long long int a,f,i,j,t; cin>>t; while(t--) { cout<<endl; cin>>a>>f; while(f--) { for(i=1;i<=a;i++) { for(j=i;j>=1;j--) { cout<<i; } cout<<endl; } for(i=a-1;i>=1;i--)...
by FahimSifnatul
Sat Jun 25, 2016 8:41 am
Forum: Volume 4 (400-499)
Topic: uva 494 - Kindergarten Counting Game
Replies: 0
Views: 1060

uva 494 - Kindergarten Counting Game

i am getting wa . but no problem i have found----- #include<iostream> #include<string> using namespace std; int main() { string s; long long int count,j,i,flag; while(!cin.eof() and getline(cin,s)) { count=0; flag=0; for(i=0;i<s.length();i++) { if((s >='a' and s <='z') or (s >'A' and s <='Z')) { ++f...

Go to advanced search