Submission #2799270


Source Code Expand

#pragma GCC optimize ("O3")
#include "bits/stdc++.h"

using namespace std;
using ll = long long int;

#define debugos cout
#define debug(v) {printf("L%d %s > ",__LINE__,#v);debugos<<(v)<<endl;}
#define debugv(v) {printf("L%d %s > ",__LINE__,#v);for(auto e:(v)){debugos<<e<<" ";}debugos<<endl;}
#define debuga(m,w) {printf("L%d %s > ",__LINE__,#m);for(int x=0;x<(w);x++){debugos<<(m)[x]<<" ";}debugos<<endl;}
#define debugaa(m,h,w) {printf("L%d %s >\n",__LINE__,#m);for(int y=0;y<(h);y++){for(int x=0;x<(w);x++){debugos<<(m)[y][x]<<" ";}debugos<<endl;}}
#define ALL(v) (v).begin(),(v).end()
#define repeat(cnt,l) for(remove_reference<remove_const<decltype(l)>::type>::type cnt=0;(cnt)<(l);++(cnt))
#define rrepeat(cnt,l) for(auto cnt=(l)-1;0<=(cnt);--(cnt))
#define iterate(cnt,b,e) for(auto cnt=(b);(cnt)!=(e);++(cnt))
#define diterate(cnt,b,e) for(auto cnt=(b);(cnt)!=(e);--(cnt))
const ll MD = 1000000007ll; const long double PI = 3.1415926535897932384626433832795L;
inline void assert_call(bool assertion, function<void()> f) { if (!assertion) { cerr << "assertion fault:" << endl; f(); abort(); } }
template<typename T1, typename T2> inline ostream& operator <<(ostream &o, const pair<T1, T2> p) { o << '(' << p.first << ':' << p.second << ')'; return o; }
template<typename Vec> inline ostream& _ostream_vecprint(ostream& os, const Vec& a) {
    os << '['; for (const auto& e : a) os << ' ' << e << ' '; os << ']'; return os; }
template<typename T> inline ostream& operator<<(ostream& o, const vector<T>& v) { return _ostream_vecprint(o, v); }
template<typename T, size_t S> inline ostream& operator<<(ostream& o, const array<T, S>& v) { return _ostream_vecprint(o, v); }
template<typename T> inline T& maxset(T& to, const T& val) { return to = max(to, val); }
template<typename T> inline T& minset(T& to, const T& val) { return to = min(to, val); }
void bye(string s, int code = 0) { cout << s << endl; exit(code); }
mt19937_64 randdev(8901016);
template<typename T> inline T rand(T l, T h) { return uniform_int_distribution<T>(l, h)(randdev); }
template<> inline double rand<double>(double l, double h) { return uniform_real_distribution<double>(l, h)(randdev); }
template<> inline float rand<float>(float l, float h) { return uniform_real_distribution<float>(l, h)(randdev); }

#if defined(_WIN32) || defined(_WIN64)
#define getchar_unlocked _getchar_nolock
#define putchar_unlocked _putchar_nolock
#elif defined(__GNUC__)
#else
#define getchar_unlocked getchar
#define putchar_unlocked putchar
#endif
namespace {
#define isvisiblechar(c) (0x21<=(c)&&(c)<=0x7E)
    class MaiScanner {
    public:
        template<typename T> void input_integer(T& var) {
            var = 0; T sign = 1;
            int cc = getchar_unlocked();
            for (; cc<'0' || '9'<cc; cc = getchar_unlocked())
                if (cc == '-') sign = -1;
            for (; '0' <= cc && cc <= '9'; cc = getchar_unlocked())
                var = (var << 3) + (var << 1) + cc - '0';
            var = var * sign;
        }
        inline int c() { return getchar_unlocked(); }
        inline MaiScanner& operator>>(int& var) { input_integer<int>(var); return *this; }
        inline MaiScanner& operator>>(long long& var) { input_integer<long long>(var); return *this; }
        inline MaiScanner& operator>>(string& var) {
            int cc = getchar_unlocked();
            for (; !isvisiblechar(cc); cc = getchar_unlocked());
            for (; isvisiblechar(cc); cc = getchar_unlocked())
                var.push_back(cc);
            return *this;
        }
        template<typename IT> void in(IT begin, IT end) { for (auto it = begin; it != end; ++it) *this >> *it; }
    };
    class MaiPrinter {
    public:
        template<typename T>
        void output_integer(T var) {
            if (var == 0) { putchar_unlocked('0'); return; }
            if (var < 0)
                putchar_unlocked('-'),
                var = -var;
            char stack[32]; int stack_p = 0;
            while (var)
                stack[stack_p++] = '0' + (var % 10),
                var /= 10;
            while (stack_p)
                putchar_unlocked(stack[--stack_p]);
        }
        inline MaiPrinter& operator<<(char c) { putchar_unlocked(c); return *this; }
        inline MaiPrinter& operator<<(int var) { output_integer<int>(var); return *this; }
        inline MaiPrinter& operator<<(long long var) { output_integer<long long>(var); return *this; }
        inline MaiPrinter& operator<<(char* str_p) { while (*str_p) putchar_unlocked(*(str_p++)); return *this; }
        inline MaiPrinter& operator<<(const string& str) {
            const char* p = str.c_str();
            const char* l = p + str.size();
            while (p < l) putchar_unlocked(*p++);
            return *this;
        }
        template<typename IT> void join(IT begin, IT end, char sep = ' ') { for (bool b = 0; begin != end; ++begin, b = 1) b ? *this << sep << *begin : *this <<* begin; }
    };
}
MaiScanner scanner;
MaiPrinter printer;



int RGB[3];
int pos[3] = {400,500,600};

// 中心からleftはなれた場所から cnt 個置くときのコスト
// left=0, cnt=1 => 0
// left=-1, cnt=3 => 2
// left=1, cnt=2 => 3
int calc(int left, int cnt){
    
}

int dfs(int left, int turn = 0){
    if (turn == 3) return 0;
    
    
}

int main(){
    
    scanner.in(RGB,RGB+3);
    
    return 0;
}

Submission Info

Submission Time
Task D - マーブル
User m_buyoh
Language Text (cat)
Score 0
Code Size 5486 Byte
Status WA
Exec Time 1 ms
Memory 128 KB

Judge Result

Set Name sub1 sub2 All
Score / Max Score 0 / 10 0 / 30 0 / 60
Status
WA × 29
WA × 57
WA × 85
Set Name Test Cases
sub1 sample_01_ABC.txt, test_ABC_01.txt, test_ABC_02.txt, test_ABC_03.txt, test_ABC_04.txt, test_ABC_05.txt, test_ABC_06.txt, test_ABC_07.txt, test_ABC_08.txt, test_ABC_09.txt, test_ABC_10.txt, test_ABC_11.txt, test_ABC_12.txt, test_ABC_13.txt, test_ABC_14.txt, test_ABC_15.txt, test_ABC_16.txt, test_ABC_17.txt, test_ABC_18.txt, test_ABC_19.txt, test_ABC_20.txt, test_ABC_21.txt, test_ABC_22.txt, test_ABC_23.txt, test_ABC_24.txt, test_ABC_25.txt, test_ABC_26.txt, test_ABC_27.txt, test_ABC_28.txt
sub2 sample_01_ABC.txt, sample_02_BC.txt, test_ABC_01.txt, test_ABC_02.txt, test_ABC_03.txt, test_ABC_04.txt, test_ABC_05.txt, test_ABC_06.txt, test_ABC_07.txt, test_ABC_08.txt, test_ABC_09.txt, test_ABC_10.txt, test_ABC_11.txt, test_ABC_12.txt, test_ABC_13.txt, test_ABC_14.txt, test_ABC_15.txt, test_ABC_16.txt, test_ABC_17.txt, test_ABC_18.txt, test_ABC_19.txt, test_ABC_20.txt, test_ABC_21.txt, test_ABC_22.txt, test_ABC_23.txt, test_ABC_24.txt, test_ABC_25.txt, test_ABC_26.txt, test_ABC_27.txt, test_ABC_28.txt, test_BC_29.txt, test_BC_30.txt, test_BC_31.txt, test_BC_32.txt, test_BC_33.txt, test_BC_34.txt, test_BC_35.txt, test_BC_36.txt, test_BC_37.txt, test_BC_38.txt, test_BC_39.txt, test_BC_40.txt, test_BC_41.txt, test_BC_42.txt, test_BC_43.txt, test_BC_44.txt, test_BC_45.txt, test_BC_46.txt, test_BC_47.txt, test_BC_48.txt, test_BC_49.txt, test_BC_50.txt, test_BC_51.txt, test_BC_52.txt, test_BC_53.txt, test_BC_54.txt, test_BC_55.txt
All sample_01_ABC.txt, sample_02_BC.txt, sample_03_C.txt, test_ABC_01.txt, test_ABC_02.txt, test_ABC_03.txt, test_ABC_04.txt, test_ABC_05.txt, test_ABC_06.txt, test_ABC_07.txt, test_ABC_08.txt, test_ABC_09.txt, test_ABC_10.txt, test_ABC_11.txt, test_ABC_12.txt, test_ABC_13.txt, test_ABC_14.txt, test_ABC_15.txt, test_ABC_16.txt, test_ABC_17.txt, test_ABC_18.txt, test_ABC_19.txt, test_ABC_20.txt, test_ABC_21.txt, test_ABC_22.txt, test_ABC_23.txt, test_ABC_24.txt, test_ABC_25.txt, test_ABC_26.txt, test_ABC_27.txt, test_ABC_28.txt, test_BC_29.txt, test_BC_30.txt, test_BC_31.txt, test_BC_32.txt, test_BC_33.txt, test_BC_34.txt, test_BC_35.txt, test_BC_36.txt, test_BC_37.txt, test_BC_38.txt, test_BC_39.txt, test_BC_40.txt, test_BC_41.txt, test_BC_42.txt, test_BC_43.txt, test_BC_44.txt, test_BC_45.txt, test_BC_46.txt, test_BC_47.txt, test_BC_48.txt, test_BC_49.txt, test_BC_50.txt, test_BC_51.txt, test_BC_52.txt, test_BC_53.txt, test_BC_54.txt, test_BC_55.txt, test_C_56.txt, test_C_57.txt, test_C_58.txt, test_C_59.txt, test_C_60.txt, test_C_61.txt, test_C_62.txt, test_C_63.txt, test_C_64.txt, test_C_65.txt, test_C_66.txt, test_C_67.txt, test_C_68.txt, test_C_69.txt, test_C_70.txt, test_C_71.txt, test_C_72.txt, test_C_73.txt, test_C_74.txt, test_C_75.txt, test_C_76.txt, test_C_77.txt, test_C_78.txt, test_C_79.txt, test_C_80.txt, test_C_81.txt, test_C_82.txt
Case Name Status Exec Time Memory
sample_01_ABC.txt WA 1 ms 128 KB
sample_02_BC.txt WA 1 ms 128 KB
sample_03_C.txt WA 1 ms 128 KB
test_ABC_01.txt WA 1 ms 128 KB
test_ABC_02.txt WA 1 ms 128 KB
test_ABC_03.txt WA 1 ms 128 KB
test_ABC_04.txt WA 1 ms 128 KB
test_ABC_05.txt WA 1 ms 128 KB
test_ABC_06.txt WA 1 ms 128 KB
test_ABC_07.txt WA 1 ms 128 KB
test_ABC_08.txt WA 1 ms 128 KB
test_ABC_09.txt WA 1 ms 128 KB
test_ABC_10.txt WA 1 ms 128 KB
test_ABC_11.txt WA 1 ms 128 KB
test_ABC_12.txt WA 1 ms 128 KB
test_ABC_13.txt WA 1 ms 128 KB
test_ABC_14.txt WA 1 ms 128 KB
test_ABC_15.txt WA 1 ms 128 KB
test_ABC_16.txt WA 1 ms 128 KB
test_ABC_17.txt WA 1 ms 128 KB
test_ABC_18.txt WA 1 ms 128 KB
test_ABC_19.txt WA 1 ms 128 KB
test_ABC_20.txt WA 1 ms 128 KB
test_ABC_21.txt WA 1 ms 128 KB
test_ABC_22.txt WA 1 ms 128 KB
test_ABC_23.txt WA 1 ms 128 KB
test_ABC_24.txt WA 1 ms 128 KB
test_ABC_25.txt WA 1 ms 128 KB
test_ABC_26.txt WA 1 ms 128 KB
test_ABC_27.txt WA 1 ms 128 KB
test_ABC_28.txt WA 1 ms 128 KB
test_BC_29.txt WA 1 ms 128 KB
test_BC_30.txt WA 1 ms 128 KB
test_BC_31.txt WA 1 ms 128 KB
test_BC_32.txt WA 1 ms 128 KB
test_BC_33.txt WA 1 ms 128 KB
test_BC_34.txt WA 1 ms 128 KB
test_BC_35.txt WA 1 ms 128 KB
test_BC_36.txt WA 1 ms 128 KB
test_BC_37.txt WA 1 ms 128 KB
test_BC_38.txt WA 1 ms 128 KB
test_BC_39.txt WA 1 ms 128 KB
test_BC_40.txt WA 1 ms 128 KB
test_BC_41.txt WA 1 ms 128 KB
test_BC_42.txt WA 1 ms 128 KB
test_BC_43.txt WA 1 ms 128 KB
test_BC_44.txt WA 1 ms 128 KB
test_BC_45.txt WA 1 ms 128 KB
test_BC_46.txt WA 1 ms 128 KB
test_BC_47.txt WA 1 ms 128 KB
test_BC_48.txt WA 1 ms 128 KB
test_BC_49.txt WA 1 ms 128 KB
test_BC_50.txt WA 1 ms 128 KB
test_BC_51.txt WA 1 ms 128 KB
test_BC_52.txt WA 1 ms 128 KB
test_BC_53.txt WA 1 ms 128 KB
test_BC_54.txt WA 1 ms 128 KB
test_BC_55.txt WA 1 ms 128 KB
test_C_56.txt WA 1 ms 128 KB
test_C_57.txt WA 1 ms 128 KB
test_C_58.txt WA 1 ms 128 KB
test_C_59.txt WA 1 ms 128 KB
test_C_60.txt WA 1 ms 128 KB
test_C_61.txt WA 1 ms 128 KB
test_C_62.txt WA 1 ms 128 KB
test_C_63.txt WA 1 ms 128 KB
test_C_64.txt WA 1 ms 128 KB
test_C_65.txt WA 1 ms 128 KB
test_C_66.txt WA 1 ms 128 KB
test_C_67.txt WA 1 ms 128 KB
test_C_68.txt WA 1 ms 128 KB
test_C_69.txt WA 1 ms 128 KB
test_C_70.txt WA 1 ms 128 KB
test_C_71.txt WA 1 ms 128 KB
test_C_72.txt WA 1 ms 128 KB
test_C_73.txt WA 1 ms 128 KB
test_C_74.txt WA 1 ms 128 KB
test_C_75.txt WA 1 ms 128 KB
test_C_76.txt WA 1 ms 128 KB
test_C_77.txt WA 1 ms 128 KB
test_C_78.txt WA 1 ms 128 KB
test_C_79.txt WA 1 ms 128 KB
test_C_80.txt WA 1 ms 128 KB
test_C_81.txt WA 1 ms 128 KB
test_C_82.txt WA 1 ms 128 KB