結果
問題 |
No.1486 ロボット
|
ユーザー |
|
提出日時 | 2021-05-05 11:34:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 368 ms / 2,000 ms |
コード長 | 182 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 21,664 KB |
最終ジャッジ日時 | 2024-09-13 03:25:27 |
合計ジャッジ時間 | 3,850 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
#yuki1486 a,b,c,d,e=map(int,input().split()) n=(a+b)*(c+d) l=[] for i in range(n): if i%(a+b)<a and i%(c+d)<c: l.append(1) else: l.append(0) print(sum(l)*(e//n)+sum(l[0:e%n]))