結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
sekihankamibanz
|
| 提出日時 | 2018-10-27 16:18:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 270 bytes |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2024-11-19 06:49:20 |
| 合計ジャッジ時間 | 1,742 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | RE * 20 |
ソースコード
tasks = int(input())
fights = int(input())
def cal(task, fight):
rest_task = task - (task // fight**2)
tomorrow_fight = fight - 1
if tomorrow_fight == 0:
print(task)
return
return cal(rest_task, tomorrow_fight)
cal(tasks, fights)
sekihankamibanz