結果
問題 | No.476 正しくない平均 |
ユーザー | kinder |
提出日時 | 2019-09-19 22:28:15 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 9,348 bytes |
コンパイル時間 | 1,142 ms |
コンパイル使用メモリ | 157,792 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-21 06:23:17 |
合計ジャッジ時間 | 2,026 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,376 KB |
testcase_02 | AC | 2 ms
5,376 KB |
testcase_03 | AC | 1 ms
5,376 KB |
testcase_04 | AC | 1 ms
5,376 KB |
testcase_05 | AC | 1 ms
5,376 KB |
testcase_06 | AC | 1 ms
5,376 KB |
testcase_07 | AC | 1 ms
5,376 KB |
testcase_08 | AC | 2 ms
5,376 KB |
testcase_09 | AC | 2 ms
5,376 KB |
testcase_10 | AC | 1 ms
5,376 KB |
testcase_11 | AC | 1 ms
5,376 KB |
testcase_12 | AC | 1 ms
5,376 KB |
testcase_13 | AC | 2 ms
5,376 KB |
testcase_14 | AC | 1 ms
5,376 KB |
testcase_15 | AC | 2 ms
5,376 KB |
testcase_16 | AC | 1 ms
5,376 KB |
testcase_17 | AC | 1 ms
5,376 KB |
testcase_18 | AC | 1 ms
5,376 KB |
testcase_19 | AC | 1 ms
5,376 KB |
testcase_20 | AC | 1 ms
5,376 KB |
testcase_21 | AC | 2 ms
5,376 KB |
testcase_22 | AC | 1 ms
5,376 KB |
testcase_23 | AC | 2 ms
5,376 KB |
testcase_24 | AC | 1 ms
5,376 KB |
testcase_25 | AC | 1 ms
5,376 KB |
testcase_26 | AC | 1 ms
5,376 KB |
testcase_27 | AC | 1 ms
5,376 KB |
testcase_28 | AC | 1 ms
5,376 KB |
ソースコード
/** .JWpfffffffffffffffpfpSIzXWl .zz<` (+<_ .dHpfpfpfpfppppppppffpfk&._?TUXWI-(+lv!` .dHHfffpfppppWHHHHHkppfpWUWk&-._dkZ==<` _ `.dHMppffffpfWMMHMMHH@HHHfn-JW0=_(Xfklv` . ..(JJJ... ` ``` .dHHMHpppppWM#HMHpWHMMHMHpfpWV!.uVTUWI! ` .JwXpppfppWH@HHmaJ.. `` ..+ggHHqMMMMMMHMMMMMMMMHppfppWHpffpk~.dk-.(XI` .JdXppffffffffppWHMHHH@HHa.. ..+gMHHH@MMHkHHHHHMM@@@@MHHHMMHkppfffpfpWo._7UWWpk_ .` __ .uXpfffffpfffpffffpppHM@H@HHHHNgWMMMHHHHHHHbkWHHHMHHHHqHHMMH@HHkkWWWppfW=!?XA-.(UWk> ` . .dffpfpffpffpffpfpppWWH@@HH@HHMMHWWHHbHHHMMHHHHHHHMMHHH@H@@HHqHHkbbpWkWHHko.(XUYCwwXfI ._~` (dffpfffpffpffppfpWHg@@@@H@HMMbWH@HMHWH@MHHHH@M@MHHMHHHM@HkbbbbbkbbbbbppkXHHWp$ .dHHUWk_ J^~jWpffpffpfppWHgggg@@@MMMHHkHH@MHkH@HHH@@@HHHM@HMMHHHHHkbpppppbbpbpWWpbbWXHHk(dMNZzzk< ` Jk&dffpffpffppHHHpffpfpWHHHHH@HMHHHMH@MHMMH@MMpHbHHHbpbbbHHWbpWWpWW0WXwZWWWSrXMMmOWfffW{ .__-_ ` ` ` ` ` ` ` ?7?7UWfpffffffffffffpWWMHH@H@HMHHHMbH@HHHbHbpppppbppppkWpkWHHkHkkbmXkbkWHHHHkwWMMHyvWppC`._~` .... jfpfppffpffpfppWWMWHMH@MHWHWHpbpWHbppWKUpkXppXppWHWbbWWMHHH@HHHHbWHHHHMHHWWWMIjXpp} ._... ?TW2`JWY7WfpffpffpfWNMWHbHMMHWHppbKUbWqpKWRpkpppppppbpbWNHMHH@MHHMHMHMHHMHHHMHH@HHHkffW} .:(l> .Z`.dWe.dffpfffppHHMWbbbbk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MbpHH@H@HH@WH@@@HHHH=WHH+;>vWyWvWHWHkHWXWKWf /T(&W@HHma,.WyNVWWM@MbbgHMM@MHMNNpfk_(S(dmAA&. .Oz1=z@MHpbHMH@@H@NW@NHHWWW2<4WR;>`?UZX(WZZWWuuuUu]`.XWM@H@HHHHHkyHVHH@HHHbHMHM@HHMHMNYTWVS_dH9HHWZVOI` .4z=vMHNppkgHH@@M@HWMWHWdWS?_CZ<<``.?u0+vXuuuuuuu%.J1` dHH@HMMxMNHWHM@H@MbHM@MMH@HHMNe-. ` d@HHwzl=l> .7J@@HHpWWMHH@HHMWWHWHSZX2<.OmgJ+-..un+-7uuuzzzI``_MMMMMMMMM$?NHWMM@@HMHMbMMH@H@HMWHfV4WWHB6<<(7Oz` .HH@HNbbNWMH@MMHNfWHWWk?WgHHHHMMNc~ (O<-.7C77?! ` ?MMMMMKXV ,MWMHMM@@HMbbHN@MMHMMNMHsdV=(7lOO1.` .WHH@HHHbWHbMHMWHHWyW?WZAdHHHHH#NMN- ``!__````````` ,WXI+uY ._JWH@MM@HHMbbWHHpbMMMHMMKz1....?==> ` `.ppH@HMHHbHbpMMMWHHyyh<?M#t.dMMMMMMD_`````````````......_~_((-VWB(wW@@HMHpWHbppbbHHMHHk, !?. _ `.XffpHHH@HNbHbWHMNfWHkZh<W]JMMMMMM#U] `.`````````.....~~~_<(_~(<1+-dWH@@MHbWMbppbbH@HHWHT&.` (pfffpHH@HHNWNbHWMHVyWHXHdN_?MbMMM8V~............`.....~~~~~~~~~df7!OZW@MHXWNWWWpbMHHMHH; dfpfffpkH@@H@HNbHWM@kWWMHWVM, ?7=<~-~...........``.........~.~._wl.<-yud@NbWNppWpbMHMWbHh Z`(UYTWHHHHHMkMHHNM@@MNkWHNn_~::::~~~~~.....````````...........(OdH+(qH@HMbHNbpppbMMMNbpb< ` .>({.+(XUHMHbHNWMHHMM@@MHNkMNvi(<<<~~~......``````````````.``. (NfWWpWHHH@@bgMHkkHHrWbHbpbk. `.<ZS.(f!dHHHpbHHHbWHM@@M@H@HHNc:<~~~~.....``````````````````..dWMKWWHyfHbHHb@gH@HMMb.Hbpppph .W&Jl `.WWNbppbbbpppWMM@MMHfYVTo~~~.....``````.```` ~`````..dHM/MNyZWWppW@gHMHHH@MHM,.WkbpWW-..??< ``._` ?UW&+W-jWNbppppWWppMHHMMm^7:XWH,-.```````````````````` .dH@@HbJMHWbWW@#HHHH@@HMMMMb.,TV=`.J! (. `._` -` ?TWWpWHHbWwkWWpbWNpHMN(ZXU$`_OG-.. ````````````` .JZtd0OOC7<+WkWHHMd9dWMMMHM8aggk:?- ,! : ~ .` .~ zvWHMMHbpppppbHHHpHgf-.2?<.Jwld@HHmA+J(--....zVttltOO<;;;;;+WHHHM6zVdHV!1d@M$`.Vr.( .-7^-: ~..`_-_`.I==zWHMNHHWbpbHMNbWH<-Jf .XmqkHHHHMHkzzzOtttttlvz1<;;;;:;:;;JMHM3=zdH% .uzvY4W&. , .!..Jd2 _<~ ~ jZ==zUHHMNHHM@HH@MMpn..WgmHHVWHfHWXTOZO<;;;;;;;;;;;;;;;:;;;:;+HUD==z0=: d@H: .JfV' { .WbpW, `` (lzz<wM@HMNHmMH@HHMNWHHqHffVVWWVfI;;;;+1<;;;;;:;;;;;:;;;;:;;jv====lO==`.=v<JVV=`(AJ` 1U0?WW+ (WMH@MMHHHMH@HHNHHHKUUWkfffWR<<<;>;;;;;:;;;;:;;;:;;;;+J^ 1===l==> 1> .4Vo. .?XkkV=!` dpk; ` ,MbM@L?HkHH@@HMN9ZXbWHHHHHHH~`````__!<<<:;;;;:;;;+JUv` <====! +1Xk (4k, ,VOu&.-, dppkl WbHkH.HNHHHMH@Mn-<vHN@HHMH#-```````````````` .J"~.^ .=v! (! ...+dWY^.= .! _jpppbWo ` -bbpb[dHMNHkvWMMh..1WHMMHMNa+-. ``````````.7!```,` ` ,ff!`.. .{ .zXzZCWpbpbWo. WpppR,Y^ ?VHslZWN, ?MSWMMA, _?!~!!!.``.^``` ` Wt .Wl.WW>/ .wvrI??zUUWWUWI..... ` XpbVT@: _1vUAzlZn (r1OHzz71..````` ````./` ` ,V[ J(...JI7TI??>>1> _~+1OllzI ` ` ._... dY! (# .= ?=<1OOzz+.` <I=: _?-.``````,-. (WYTY7"! ,Ilz<! (>>><<<-.====zv1= _ ` _ T`db ..dWk, <1. ??<11<-.(<> .~.`.WMHh, . (W .-. .kQao- (>;!`` (OzzwZi+zz ` .. i. .TVY^ .W\ d0?1-. .MHk&JdHHMHWN, r T' .f_ TV'(^ (<+<d<?Gc1+.```(wtw-`._?O `_ .zO&. .. Jf ..-_?<<_- dMHNXWWHNHQkNyN, .Mn f[ .$.`.J!jZ`.?_(<_?+ ``(Wfkv` ( ` ` `.v</~?7,.= XL..dY=?V_.&+ .#0QdU=<<~~~~~~jMh,d|.Wk&J.f\ <` .HkyVS,!`.(;:;<6-``?Y!(-. ( .7!Xo. <. .77= .V{ 7^ `XXZlv~~~~~~~~~~(MH@mbWr _?! .x. .H@Nyh.C7<(?A<;;;?..< wI1(X ` j9<- ..I. ., y) ..dXk. . dNv<~~~~~~~~~~~(MHH@MN[ JA, (>_?THMHM\ ```:;;;?4+<;;?-_ OZldW (h.~!!!!?!. ` XndV^ V)Of% dHR_~~~~~:~~:~~(H@HHMM%.4UC.zv` (HB>` ..(;;;;;;;;;+o (Xudp ` ` `,bWx ../~`_-. ~ dr ..-. dHNh_~~:~~~~~~:?@HMfpW. .--v=1. .>>} `.;?&+<;;:;;:+k< zWUU ` ` ,bbHwzVZ{ ..?>.. Xk (k.dY=?4kd@Hpk-~~~~:~_((+dMNpfp[ ,J7zv1<.Jc-+l...(;;;1(;;;:;;v,I.JXOI= `(pbOI11z>` .=zC-. .Wf! . zW@pffpojOZVOlll1_?Hffff..<_jXmggkK`,zC` (?1<;;;;:;++J (WWSvz<1 JpD(S;;;+-. ` ..._7&, ?U\.=dMWpfW0llllOwOll>~?4pff$(.(vUHH@M:.zd,` <;;:;;;:;<Z^ jS`?O-.` ` ` dbS(y<<<<+zO-..Y?1.. zVSJ. .1=dHHpf0<zllzlI?IOO:~~vpfppl (>jWHt.1=lz?!_<;;:;:;+V` .X$ _? ` ` dS<<d>```._(Z=7WQSOvG.` JZZUXuXkVHMWfI~~Olz(z_~?wc~~~?WpfWl .W0`(===v,```(;;;jCj> (Wr .dC (dr`.> ?1..??n(4x=zOi.?C1?v!?C<zHNWI~~(IO_(>~~~>~~~~?WffWAdfSC.1====zI-.;:<<;+v dX% ` `.z~ j$ (;<.l(<- `..-Y1WVO>?7=<..+ .Wk>~~~(z>:j+:(c~~:~~?UfpffpW>(========lX++;;z` .ZzI ` ` ` (> (Jn.$;;jC;;;j>.-```(1G..... ?XWHHH<:~~~(1_(ZvXI~~~~:~(XfpfpS_+=========zWHkz! (I==_ <_(OXXWd<;;J;;;;v;;;<.!``,kz====+. ?WpW<~~:~~(<(wlO>~:~~~~~~OWpfS <==========zWf{ .Ol==_ .jI=zXWR;;j>;;;jC;:;Z_.<..r`(Gz==1- .4k<~~(1:~~_ztO<~~~:~~(jevWHk_<==========lZW: (I===+ `.C7COwXI;;;;;:+I;;;;$;;;;J---.4O===+. u+__+z:~~~jOt<(-_(u&++><WHMr(===========zX_ zl====_` ` ` ` `.v?&. !~<;;;;:;;;:;<;;;+>;;;;jSl===1- ?WIlv~:__(OO<XWCdS?7Uk&WH@b(===========ld{ wl===l1- ` ({ 1>-. (<1<;;;:;;;;;;:;;;;;+CXO===l=+.(1wz++XWodHHk+(XI(++<?7<WH_<l==========zX- jOl=====+-( `({ .J+._ (-_!_(+<<;;;<+++>;;;+XI=====l1-jXWWWc<dWUI?UWWI?TC<~~:jW{.1l==========On. jOl======= ` `(l.dWT4WqbWVC- `(z<<<;;;;;;jSl=======1-v9<wWdW3zmo:?<<~~:(JgqHM}`(==========l=wn. (Oszl==== ` ` .XV1C~ (1l> (- (O+;;;:;;<dZ=========1<1+yvU3<?WSz__(+gkH@@@@M{ .=============OW& ?4Az=== ( (l_ i. ?z<;;;;jfk===========+_<~~~~~~jwXWHgggggg@@gr .==============zXn. _jwsz ( j; __. .1+;;jWpkl=======l===1u++J---+WqqqqmmgggHUVI. 1==============lOS- _TM ` ` `.. jI. ~.` (OxdHHkOl==========lOWmmmHkkWqkqqqmmH9C1+z_ <================zX< ``_ ` ` ~` .OO: (- dMM@HZ=======l====lwVTWHqqkHW9Y776!_...(> (=================zG- ` +`?z- (Wo. (zH@Hkl============ll<._?TC~_....(_.-(++O_ 1=l===============zI. ` **/ #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i<(int)(n);++i) int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll n, a; cin >> n >> a; ll res = 0; rep(i,n) { ll b; cin >> b; res += b; } cout << ((res+0.0)/(n+0.0) == a ? "YES" : "NO") << endl; }