結果
問題 | No.296 n度寝 |
ユーザー | notsix4 |
提出日時 | 2021-11-23 14:14:39 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 18 ms / 1,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 751 ms |
コンパイル使用メモリ | 10,480 KB |
実行使用メモリ | 8,912 KB |
最終ジャッジ日時 | 2023-09-07 16:52:06 |
合計ジャッジ時間 | 1,849 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
8,804 KB |
testcase_01 | AC | 17 ms
8,760 KB |
testcase_02 | AC | 18 ms
8,712 KB |
testcase_03 | AC | 17 ms
8,704 KB |
testcase_04 | AC | 17 ms
8,724 KB |
testcase_05 | AC | 17 ms
8,704 KB |
testcase_06 | AC | 17 ms
8,912 KB |
testcase_07 | AC | 18 ms
8,884 KB |
testcase_08 | AC | 18 ms
8,704 KB |
testcase_09 | AC | 18 ms
8,780 KB |
testcase_10 | AC | 18 ms
8,856 KB |
testcase_11 | AC | 18 ms
8,700 KB |
testcase_12 | AC | 18 ms
8,708 KB |
testcase_13 | AC | 18 ms
8,776 KB |
testcase_14 | AC | 18 ms
8,856 KB |
testcase_15 | AC | 18 ms
8,752 KB |
ソースコード
import datetime n,h,m,t=map(int,input().split()) dt1 = datetime.timedelta(hours= h, minutes=m) #time_1 = datetime.timedelta(hours= h, minutes=m, seconds=00) dt2 = dt1 + datetime.timedelta(minutes=t*(n-1)) dt3=dt2.days #print(dt3) dt4=dt2 - datetime.timedelta(days=dt3) #print(dt4) d=str(dt4) l=list(map(int,d.split(":"))) print(l[0]) print(l[1])