What do you mean \n? Is it special in any way?
I think the problem might be that I don't have the US keyboard, and the position of the keys are a bit mixed up.
Am I missing the numbers. I don't know, I can't see that the numbers must also be implemented.
qwaszx outputs {};`./
I found that this is ...
Search found 4 matches
- Sat Dec 27, 2003 9:06 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10222 - Decode the Mad man
- Replies: 30
- Views: 15383
- Sat Dec 27, 2003 8:22 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10222 - Decode the Mad man
- Replies: 30
- Views: 15383
10222 -WA
Hy! I just can't get rid of that WA. Does anyone know what's wrong with the code?!
Thanks!
[cpp]
#include <iostream>
#include <ctype.h>
using namespace std;
char change(char ch)
{
ch = tolower(ch);
switch(ch)
{
case '}':
return 'p';
case '{':
return 'o';
case 'p':
return 'i';
case 'o ...
Thanks!
[cpp]
#include <iostream>
#include <ctype.h>
using namespace std;
char change(char ch)
{
ch = tolower(ch);
switch(ch)
{
case '}':
return 'p';
case '{':
return 'o';
case 'p':
return 'i';
case 'o ...
- Wed Dec 24, 2003 4:36 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10515 - Powers Et Al.
- Replies: 124
- Views: 45486
- Tue Dec 23, 2003 5:14 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10515 - Powers Et Al.
- Replies: 124
- Views: 45486
10515 TLE
Hy! I'm getting TLE with this code. Can anyone explain why?
[cpp]
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
/*
2 2
2 5
0 0
*/
int main()
{
int m,n;
while(cin>>m>>n)
{
if(!m && !n)
return 0;
if(m==1){
cout<<"1"<<endl;
continue ;
}
if(m==10 || m==0 ...
[cpp]
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
/*
2 2
2 5
0 0
*/
int main()
{
int m,n;
while(cin>>m>>n)
{
if(!m && !n)
return 0;
if(m==1){
cout<<"1"<<endl;
continue ;
}
if(m==10 || m==0 ...