結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
kumakuma
|
| 提出日時 | 2022-06-24 12:12:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 1,000 ms |
| コード長 | 892 bytes |
| コンパイル時間 | 345 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-11-08 05:26:52 |
| 合計ジャッジ時間 | 711 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
# 月 = 日にちの総和が2015年に何日あるか
import math
# 変数
count = 0
month = []
# 月の情報(月、日数)
january = (1, 31)
february = (2, 28)
march = (3, 31)
april = (4, 30)
may = (5, 31)
june = (6, 30)
july = (7, 31)
august = (8, 31)
september = (9, 30)
october = (10, 31)
november = (11, 30)
december = (12, 31)
month.append(january)
month.append(february)
month.append(march)
month.append(april)
month.append(may)
month.append(june)
month.append(july)
month.append(august)
month.append(september)
month.append(october)
month.append(november)
month.append(december)
# 計算(1月)
for month in month:
for i in range(month[1]):
i += 1
# 桁分ける
mae = math.floor(i / 10)
usiro = i % 10
# 判定
if (mae + usiro) == month[0]:
count += 1;
print(count)
kumakuma