結果
問題 | No.188 HAPPY DAY |
ユーザー |
|
提出日時 | 2024-02-12 20:07:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 1,000 ms |
コード長 | 439 bytes |
コンパイル時間 | 137 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-28 18:11:27 |
合計ジャッジ時間 | 517 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
a = [1,3,5,7,8,10,12]b = [4,6,9,11]cnt =0for m in range(1,13):if m in a:for d in range(1,32):s = str(d).zfill(2)if int(s[0])+int(s[1])==m:cnt+=1elif m in b:for d in range(1,31):s = str(d).zfill(2)if int(s[0])+int(s[1])==m:cnt+=1else:for d in range(1,29):s = str(d).zfill(2)if int(s[0])+int(s[1])==m:cnt+=1print(cnt)