結果

問題 No.3058 M + D Problem
ユーザー Adam JimenezAdam Jimenez
提出日時 2020-04-01 21:34:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 129 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 9,860 KB
最終ジャッジ日時 2023-09-09 16:34:44
合計ジャッジ時間 2,685 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,636 KB
testcase_01 AC 29 ms
9,732 KB
testcase_02 AC 29 ms
9,656 KB
testcase_03 AC 29 ms
9,640 KB
testcase_04 WA -
testcase_05 AC 29 ms
9,792 KB
testcase_06 AC 29 ms
9,800 KB
testcase_07 AC 28 ms
9,772 KB
testcase_08 AC 29 ms
9,648 KB
testcase_09 AC 29 ms
9,768 KB
testcase_10 AC 29 ms
9,644 KB
testcase_11 AC 29 ms
9,656 KB
testcase_12 AC 29 ms
9,648 KB
testcase_13 AC 29 ms
9,808 KB
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from calendar import monthrange
a,b = [int(x) for x in input().split()]
m=((a-1)%12)+1
d=monthrange(2020,m)[1]

print(m+(b%d))


0