結果

問題 No.188 HAPPY DAY
ユーザー helical28556801helical28556801
提出日時 2017-04-09 13:55:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 1,000 ms
コード長 260 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 7,944 KB
最終ジャッジ日時 2023-08-29 22:30:04
合計ジャッジ時間 586 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

b=0
for i in range(1,13):
 for j in range(1,32):

  if j>10:
   a=j//10+(j-(j//10*10)) 

  else:
   a=j

  if i==a:
   b+=1

  if i in {1,3,5,7,8,10,12} and j==31:
   break

  if i in {4,6,9,11} and j==30:
   break
  
  if i == 2 and j==28:
   break

print(b)
0