ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1370. Волшебник

WHY WA3??? PLEASE HELP!!!!
Послано BAron 10 май 2007 21:41
I THINK THAT MY PROGRAM MUST HAVE AC BUT WA3
WHAT THE 3 TEST????
PLEASE POST TEST №3!!!!!!!
A blonde? ;) (-)
Послано Dmitry 'Diman_YES' Kovalioff 11 май 2007 21:50
No subject
Послано BAron 12 май 2007 17:29


Edited by author 13.05.2007 15:12
Please, use English while posting your messages (-)
Послано Dmitry 'Diman_YES' Kovalioff 12 май 2007 22:26
Re: Please, use English while posting your messages (-)
Послано Alias (Alexander Prudaev) 13 май 2007 10:06
blonde :) ha ha. It is joke about
WRITING MESSAGES WITH CAPS LOCK ON
Which difference???
Послано BAron 13 май 2007 10:56
Which difference write messages WITH CAPS LOCK ON or with caps lock off?


Please post some tests! I dont know why my program had WA :(
Re: Which difference???
Послано Alias (Alexander Prudaev) 13 май 2007 12:40
12 335
1
2
3
4
5
6
7
8
9
0
7
7

answer
7123456789
Thanks
Послано BAron 13 май 2007 15:06
Thanks for the test, I've got AC!
Re: Which difference???
Послано Andranik 15 июл 2010 01:44
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
    int i,n,m;
    cin>>n>>m;
    long int *a=new long int [n];
    for(i=0;i<n;i++)
        cin>>a[i];
    rotate(a,a+m,a+n);
    long int b[10];
    for(i=0;i<10;i++)
        b[i]=a[i];
    for(i=0;i<10;i++)
        cout<<b[i];
    cout<<endl;
    return 0;
}

the test of Alias doesn't work,but why?What is incorrect in code?
Re: Which difference???
Послано Andranik 15 июл 2010 23:18
Already got AC....this code is right,you only need to decrease the quantity of ranges by decreasing the "m".......make m<n and everything will be  ok ;)
Re: Which difference???
Послано a2ch 12 авг 2018 21:13
Or you can use "%" :)
And yes,i'm necroposter )))
Re: WHY WA3??? PLEASE HELP!!!!
Послано Khujamurod Murtozakulov (Tashkent U of IT) 7 ноя 2018 19:49
check for m >= n