• Codeforce Round #214 Div2


    我是不是快要滚蛋了,这次CF爆0?

    居然第一题都过不去了,妈蛋附近有没有神经病医院,我要去看看!

    精力憔悴!

    第一题,我以为要恰好这么多钱,不能多余,想想这也没必要,不符合逻辑,及自己就是这么傻逼!

    写了个这,B代码

     1 int main(){
     2     while (~scanf("%d", &n)){
     3         int x, y;
     4         k = -1;
     5         for (int i = 0; i < 4;i++)
     6         scanf("%d%d%d%d", &a[i*2], &a[i*2 + 1], &b[i*2], &b[i*2 + 1]);
     7         for (int i = 0; i < 8;i++)
     8         for (int j = 0; j < 8; j++){
     9             int xi = j, xj = i;
    10             if ((j % 2)>(i % 2))xi--,xj++;
    11             if ((j % 2) < (i % 2))xi++,xj--;
    12             if (a[i] + b[j] == n&&a[i] >= a[xi]){ k = j / 2, x = a[i], y = b[j]; i = 10, j = 10; break; }
    13             if (a[i] + b[j] == n&&b[j] >= b[xj]){ k = i / 2, x = a[i], y = b[j]; i = 10; j = 10; break; }
    14         }
    15         if (k == -1){ printf("-1
    "); continue; }
    16         printf("%d %d %d
    ", k + 1, x, y);
    17     }
    18     return 0;
    19 }
    View Code

     妈蛋回看了下,这种题目都爆0,我的生活放荡像只狗!

  • 相关阅读:
    toj 2975 Encription
    poj 1797 Heavy Transportation
    toj 2971 Rotating Numbers
    zoj 2281 Way to Freedom
    toj 2483 Nasty Hacks
    toj 2972 MOVING DHAKA
    toj 2696 Collecting Beepers
    toj 2970 Hackle Number
    toj 2485 Card Tric
    js页面定位,相关几个属性
  • 原文地址:https://www.cnblogs.com/HaibaraAi/p/3440798.html
Copyright © 2020-2023  润新知