結果

問題 No.3083 12歳
ユーザー iiljjiiljj
提出日時 2021-04-01 21:17:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,323 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,980 KB
実行使用メモリ 10,296 KB
最終ジャッジ日時 2023-08-23 05:13:18
合計ジャッジ時間 23,464 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 34 ms
10,044 KB
testcase_02 AC 35 ms
10,016 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 35 ms
10,180 KB
testcase_09 WA -
testcase_10 AC 33 ms
10,096 KB
testcase_11 AC 34 ms
10,144 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 34 ms
10,044 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 34 ms
10,108 KB
testcase_21 AC 33 ms
10,168 KB
testcase_22 AC 33 ms
10,104 KB
testcase_23 AC 33 ms
10,048 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 33 ms
10,156 KB
testcase_29 AC 33 ms
10,040 KB
testcase_30 AC 33 ms
10,024 KB
testcase_31 AC 33 ms
10,140 KB
testcase_32 AC 34 ms
10,108 KB
testcase_33 AC 34 ms
10,092 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 32 ms
10,200 KB
testcase_38 AC 33 ms
10,028 KB
testcase_39 AC 34 ms
10,088 KB
testcase_40 AC 33 ms
10,184 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 34 ms
10,096 KB
testcase_51 AC 34 ms
10,096 KB
testcase_52 AC 35 ms
10,052 KB
testcase_53 AC 33 ms
10,048 KB
testcase_54 WA -
testcase_55 AC 33 ms
10,192 KB
testcase_56 AC 33 ms
10,172 KB
testcase_57 AC 33 ms
10,240 KB
testcase_58 AC 33 ms
10,088 KB
testcase_59 AC 33 ms
10,016 KB
testcase_60 WA -
testcase_61 AC 33 ms
10,076 KB
testcase_62 WA -
testcase_63 WA -
testcase_64 WA -
testcase_65 AC 33 ms
10,208 KB
testcase_66 AC 34 ms
10,208 KB
testcase_67 AC 33 ms
10,192 KB
testcase_68 AC 33 ms
10,200 KB
testcase_69 WA -
testcase_70 WA -
testcase_71 AC 33 ms
10,044 KB
testcase_72 WA -
testcase_73 WA -
testcase_74 WA -
testcase_75 WA -
testcase_76 WA -
testcase_77 AC 33 ms
10,188 KB
testcase_78 AC 33 ms
10,092 KB
testcase_79 AC 34 ms
10,084 KB
testcase_80 AC 34 ms
10,164 KB
testcase_81 WA -
testcase_82 WA -
testcase_83 WA -
testcase_84 WA -
testcase_85 AC 34 ms
10,036 KB
testcase_86 AC 34 ms
10,036 KB
testcase_87 AC 33 ms
10,144 KB
testcase_88 AC 33 ms
10,024 KB
testcase_89 AC 34 ms
10,044 KB
testcase_90 AC 33 ms
10,060 KB
testcase_91 WA -
testcase_92 WA -
testcase_93 WA -
testcase_94 AC 34 ms
10,200 KB
testcase_95 AC 32 ms
10,100 KB
testcase_96 AC 33 ms
10,096 KB
testcase_97 AC 33 ms
10,104 KB
testcase_98 AC 33 ms
10,052 KB
testcase_99 AC 33 ms
10,092 KB
testcase_100 WA -
testcase_101 WA -
testcase_102 WA -
testcase_103 AC 33 ms
10,156 KB
testcase_104 AC 33 ms
10,028 KB
testcase_105 AC 33 ms
10,072 KB
testcase_106 AC 34 ms
10,204 KB
testcase_107 WA -
testcase_108 WA -
testcase_109 WA -
testcase_110 WA -
testcase_111 WA -
testcase_112 WA -
testcase_113 WA -
testcase_114 WA -
testcase_115 WA -
testcase_116 AC 32 ms
10,088 KB
testcase_117 WA -
testcase_118 WA -
testcase_119 WA -
testcase_120 WA -
testcase_121 WA -
testcase_122 AC 32 ms
10,032 KB
testcase_123 WA -
testcase_124 AC 34 ms
10,168 KB
testcase_125 AC 33 ms
10,160 KB
testcase_126 WA -
testcase_127 WA -
testcase_128 AC 34 ms
10,096 KB
testcase_129 WA -
testcase_130 WA -
testcase_131 WA -
testcase_132 WA -
testcase_133 WA -
testcase_134 AC 33 ms
10,172 KB
testcase_135 AC 34 ms
10,036 KB
testcase_136 AC 33 ms
10,048 KB
testcase_137 AC 34 ms
10,100 KB
testcase_138 WA -
testcase_139 WA -
testcase_140 WA -
testcase_141 WA -
testcase_142 AC 31 ms
10,008 KB
testcase_143 AC 33 ms
10,028 KB
testcase_144 AC 32 ms
10,092 KB
testcase_145 AC 34 ms
10,036 KB
testcase_146 AC 32 ms
10,232 KB
testcase_147 AC 34 ms
10,064 KB
testcase_148 WA -
testcase_149 WA -
testcase_150 WA -
testcase_151 AC 34 ms
10,240 KB
testcase_152 AC 32 ms
10,036 KB
testcase_153 AC 32 ms
10,020 KB
testcase_154 AC 33 ms
10,144 KB
testcase_155 WA -
testcase_156 WA -
testcase_157 WA -
testcase_158 WA -
testcase_159 WA -
testcase_160 WA -
testcase_161 WA -
testcase_162 WA -
testcase_163 WA -
testcase_164 AC 34 ms
10,064 KB
testcase_165 AC 33 ms
10,200 KB
testcase_166 AC 33 ms
10,048 KB
testcase_167 AC 33 ms
10,112 KB
testcase_168 AC 34 ms
10,168 KB
testcase_169 AC 33 ms
10,156 KB
testcase_170 AC 33 ms
10,024 KB
testcase_171 AC 33 ms
10,136 KB
testcase_172 AC 33 ms
10,076 KB
testcase_173 AC 35 ms
10,184 KB
testcase_174 WA -
testcase_175 WA -
testcase_176 WA -
testcase_177 WA -
testcase_178 WA -
testcase_179 AC 34 ms
10,108 KB
testcase_180 WA -
testcase_181 AC 32 ms
10,020 KB
testcase_182 AC 33 ms
10,152 KB
testcase_183 WA -
testcase_184 WA -
testcase_185 AC 33 ms
10,180 KB
testcase_186 WA -
testcase_187 WA -
testcase_188 WA -
testcase_189 WA -
testcase_190 WA -
testcase_191 AC 33 ms
10,024 KB
testcase_192 AC 32 ms
10,048 KB
testcase_193 AC 32 ms
10,036 KB
testcase_194 AC 33 ms
10,028 KB
testcase_195 WA -
testcase_196 WA -
testcase_197 WA -
testcase_198 WA -
testcase_199 AC 33 ms
10,176 KB
testcase_200 AC 32 ms
10,156 KB
testcase_201 AC 33 ms
10,084 KB
testcase_202 AC 32 ms
10,040 KB
testcase_203 AC 33 ms
10,068 KB
testcase_204 AC 34 ms
10,180 KB
testcase_205 WA -
testcase_206 WA -
testcase_207 WA -
testcase_208 AC 34 ms
10,216 KB
testcase_209 AC 33 ms
10,140 KB
testcase_210 AC 33 ms
10,180 KB
testcase_211 AC 33 ms
10,156 KB
testcase_212 WA -
testcase_213 WA -
testcase_214 WA -
testcase_215 WA -
testcase_216 WA -
testcase_217 WA -
testcase_218 WA -
testcase_219 WA -
testcase_220 WA -
testcase_221 AC 34 ms
10,040 KB
testcase_222 AC 34 ms
10,172 KB
testcase_223 AC 33 ms
10,200 KB
testcase_224 AC 34 ms
10,116 KB
testcase_225 WA -
testcase_226 AC 34 ms
10,100 KB
testcase_227 AC 34 ms
10,160 KB
testcase_228 AC 33 ms
10,040 KB
testcase_229 AC 33 ms
10,236 KB
testcase_230 AC 33 ms
10,016 KB
testcase_231 WA -
testcase_232 AC 34 ms
10,024 KB
testcase_233 WA -
testcase_234 WA -
testcase_235 WA -
testcase_236 AC 35 ms
10,188 KB
testcase_237 AC 33 ms
10,212 KB
testcase_238 AC 34 ms
10,156 KB
testcase_239 AC 33 ms
10,176 KB
testcase_240 WA -
testcase_241 WA -
testcase_242 AC 33 ms
10,200 KB
testcase_243 WA -
testcase_244 WA -
testcase_245 WA -
testcase_246 WA -
testcase_247 WA -
testcase_248 AC 34 ms
10,108 KB
testcase_249 AC 34 ms
10,076 KB
testcase_250 AC 34 ms
10,104 KB
testcase_251 AC 34 ms
10,112 KB
testcase_252 WA -
testcase_253 WA -
testcase_254 WA -
testcase_255 WA -
testcase_256 AC 34 ms
10,004 KB
testcase_257 AC 33 ms
10,140 KB
testcase_258 AC 33 ms
10,192 KB
testcase_259 AC 33 ms
10,028 KB
testcase_260 AC 34 ms
10,132 KB
testcase_261 AC 34 ms
10,052 KB
testcase_262 WA -
testcase_263 WA -
testcase_264 WA -
testcase_265 AC 34 ms
10,164 KB
testcase_266 AC 32 ms
10,036 KB
testcase_267 AC 32 ms
10,000 KB
testcase_268 AC 32 ms
10,140 KB
testcase_269 AC 33 ms
10,168 KB
testcase_270 AC 33 ms
10,184 KB
testcase_271 WA -
testcase_272 WA -
testcase_273 WA -
testcase_274 AC 33 ms
10,200 KB
testcase_275 AC 33 ms
10,092 KB
testcase_276 AC 33 ms
10,156 KB
testcase_277 AC 34 ms
10,148 KB
testcase_278 WA -
testcase_279 WA -
testcase_280 WA -
testcase_281 WA -
testcase_282 WA -
testcase_283 WA -
testcase_284 WA -
testcase_285 WA -
testcase_286 WA -
testcase_287 AC 33 ms
10,020 KB
testcase_288 WA -
testcase_289 WA -
testcase_290 WA -
testcase_291 WA -
testcase_292 WA -
testcase_293 AC 34 ms
10,048 KB
testcase_294 WA -
testcase_295 AC 33 ms
10,156 KB
testcase_296 AC 34 ms
10,092 KB
testcase_297 WA -
testcase_298 WA -
testcase_299 AC 35 ms
10,164 KB
testcase_300 WA -
testcase_301 WA -
testcase_302 WA -
testcase_303 WA -
testcase_304 WA -
testcase_305 AC 34 ms
10,232 KB
testcase_306 AC 33 ms
10,036 KB
testcase_307 AC 34 ms
10,012 KB
testcase_308 AC 34 ms
10,180 KB
testcase_309 WA -
testcase_310 WA -
testcase_311 WA -
testcase_312 WA -
testcase_313 AC 33 ms
10,092 KB
testcase_314 AC 33 ms
10,116 KB
testcase_315 AC 33 ms
10,156 KB
testcase_316 AC 33 ms
10,160 KB
testcase_317 AC 34 ms
10,120 KB
testcase_318 AC 34 ms
10,052 KB
testcase_319 WA -
testcase_320 WA -
testcase_321 WA -
testcase_322 AC 33 ms
10,184 KB
testcase_323 AC 33 ms
10,204 KB
testcase_324 AC 33 ms
10,004 KB
testcase_325 AC 32 ms
10,020 KB
testcase_326 WA -
testcase_327 WA -
testcase_328 WA -
testcase_329 WA -
testcase_330 WA -
testcase_331 WA -
testcase_332 WA -
testcase_333 WA -
testcase_334 WA -
testcase_335 AC 34 ms
10,240 KB
testcase_336 AC 34 ms
10,108 KB
testcase_337 AC 34 ms
10,028 KB
testcase_338 AC 35 ms
10,272 KB
testcase_339 AC 34 ms
10,248 KB
testcase_340 AC 33 ms
10,160 KB
testcase_341 AC 33 ms
10,144 KB
testcase_342 AC 33 ms
10,104 KB
testcase_343 AC 33 ms
10,204 KB
testcase_344 WA -
testcase_345 AC 35 ms
10,048 KB
testcase_346 WA -
testcase_347 AC 34 ms
10,116 KB
testcase_348 AC 33 ms
10,144 KB
testcase_349 AC 33 ms
10,080 KB
testcase_350 AC 33 ms
10,100 KB
testcase_351 WA -
testcase_352 WA -
testcase_353 AC 35 ms
10,060 KB
testcase_354 WA -
testcase_355 AC 33 ms
10,112 KB
testcase_356 AC 33 ms
10,200 KB
testcase_357 AC 33 ms
10,200 KB
testcase_358 WA -
testcase_359 AC 33 ms
10,120 KB
testcase_360 WA -
testcase_361 AC 33 ms
10,028 KB
testcase_362 AC 33 ms
10,008 KB
testcase_363 AC 34 ms
10,104 KB
testcase_364 AC 32 ms
10,180 KB
testcase_365 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from datetime import date, time, timedelta
from typing import List

y, n, d = map(int, input().split())
# print(y, n, d)

born_lb: date = date(y-13, 4, 2)
born_ub: date = date(y-12, 4, 1)

date_lb: date = date(y, 4, 2)
date_ub: date = date(y+1, 4, 1)

lb_birthday: List[date] = []
ub_birthday: List[date] = []
for delta in range(n):
    lb_birthday.append(born_lb + timedelta(days=delta))
    ub_birthday.append(born_ub - timedelta(days=delta))

date_lb41: date = date(y, 4, 1)
dt = date_lb41 + timedelta(days=d)


def isok(d: date, ma: date) -> bool:
    if d.month >= 4:
        if d.month == 4 and d.day == 1:
            return d.day == ma.day
        else:
            if ma.month >= 4:
                return d.month < ma.month or (d.month == ma.month and d.day <= ma.day)
            else:
                return True
    else:
        if ma.month >= 4:
            if ma.month == 4 and ma.day == 1:
                return True
            else:
                return False
        else:
            return d.month < ma.month or (d.month == ma.month and d.day <= ma.day)


ma: int = 0
# print(lb_birthday, dt)
for bd in lb_birthday:
    if isok(bd, dt):
        ma += 1
    else:
        print(bd)

mi: int = 0
# print(ub_birthday, dt)
for bd in ub_birthday:
    if isok(bd, dt):
        mi += 1

print(n-ma, n-mi)
0