結果
問題 | No.188 HAPPY DAY |
ユーザー | nbisco |
提出日時 | 2016-03-13 16:24:11 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 389 bytes |
コンパイル時間 | 493 ms |
コンパイル使用メモリ | 10,704 KB |
実行使用メモリ | 7,840 KB |
最終ジャッジ日時 | 2023-08-29 04:56:51 |
合計ジャッジ時間 | 682 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
ソースコード
days = [31,28,31,30,31,30,31,31,30,31,30,31] count = 0 for i in range(1,13): for j in range(1, days[i-1]+1): if j < 10: if j == i: count += 1 print("%d/%d"%(i,j)) else: ten, one = [int(x) for x in str(j)] if ten + one == i: count += 1 print("%d/%d"%(i,j)) print(count)