BNU OJ 50998 BQG's Messy Code

#include <cstdio>
#define _(l) int l
#define ___(l,L) for (_(o)=0,x=l o*2;o<x;o++)O= L o;
#define __ _ ( _ )
const __=0x80000000;
_(main)()
{
    int T;
    scanf("%d",&T);
    while(T--){
    _(O);
    scanf("%d",&O);
    if(O&_)___(-,-~)
        else ___(+,~-)
            printf("%d\n",-O);
    }
    return 0000000000000000;
}

BNU OJ 50998 BQG's Messy Code

时间: 2025-01-17 15:54:57

BNU OJ 50998 BQG's Messy Code的相关文章

BNU OJ 51003 BQG&#39;s Confusing Sequence

二进制++高精度取模 #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn=100; long long a[maxn]; long long sumA[maxn]; int aa,bb; int len; long long n; int Base[maxn]; int tot; int ans[maxn]; void init1() { m

BNU OJ 50999 BQG&#39;s Approaching Deadline

#include<cstdio> #include<algorithm> using namespace std; const int maxn=1000+10; struct Homework { long long st; long long len; }h[maxn]; int n; bool cmp(const Homework&a,const Homework&b) { return a.st<b.st; } int main() { int T;

BNU OJ 51005 BQG&#39;s Quadrilateral Bricks

#include<cstdio> #include<cstring> #include<cmath> #include<vector> #include<algorithm> using namespace std; int main() { int T; scanf("%d",&T); while(T--) { int x; for(int i=1;i<=8;i++) scanf("%d",

the solution about &quot;messy code&quot; in elicpse

I use the Elicpse IDE to develope the ansdroid app.Sometime encounter the messy code in the Elicpse One solve method is that to fix the Ecicpse's enCoding setting: click "Windows->Preferences->General->Content Type",in the right tab,mak

BNU OJ 1027 金币系统

金币系统 Time Limit: 1000ms Memory Limit: 65535KB 64-bit integer IO format: %lld      Java class name: Main YC大牛自从杭州归来,喜欢没事儿摆个地摊儿什么的的赚点零钱买装备.经过一个星期的苦苦支撑,终于裸奔了一把鹰角弓出来.-_-他在摆摊的过程中吃了不少苦头,比如,没有零钱什么的.这样的话,有人来买东西的话他就会因为找不开钱而让价.因此他希望能得知某种面值可以用多少种方式得到,比如15块的面值,可

Chinese Messy Code of String

I's very strange that I found the messy code.I 've never seen this before. this is the java code: /** * list * * @throws UnsupportedEncodingException */ @RequestMapping(value = "/list", method = RequestMethod.GET) public String list(Long adminId

the solution about &amp;quot;messy code&amp;quot; in elicpse

I use the Elicpse IDE to develope the ansdroid app.Sometime encounter the messy code in the Elicpse One solve method is that to fix the Ecicpse's enCoding setting: click "Windows->Preferences->General->Content Type",in the right tab,mak

bnu oj 34985 Elegant String (矩阵+dp)

Elegant String We define a kind of strings as elegant string: among all the substrings of an elegant string, none of them is a permutation of "0, 1,-, k". Let function(n, k) be the number of elegant strings of length n which only contains digits

Oracle Database 11g Release 2(11.2.0.3.0) RAC On Redhat Linux 5.8 Using Vmware Workstation 9.0

一,简介 二,配置虚拟机 1,创建虚拟机 (1)添加三块儿网卡: 主节点 二节点 eth0:    公网  192.168.1.20/24   NAT eth0:    公网  192.168.1.21/24   NAT eth1:私网  192.168.2.20/24     host-only eth1:      私网  192.168.2.21/24   host-only eth2:    DHCP    Bridged eth2:     DHCP    Bridged 主机名: t