結果
| 問題 |
No.91 赤、緑、青の石
|
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-23 00:30:59 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 436 bytes |
| コンパイル時間 | 73 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-17 09:41:42 |
| 合計ジャッジ時間 | 2,109 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 21 WA * 7 |
ソースコード
stones = sorted([ int(v) for v in input().split() ])
def exchange(inlist):
first_product, second_product, third_product = 0, 0, 0
a, b, c = inlist
first_product = a
a, b, c = 0, b-a, c-a
if c <= b *3:
second_product = ( b + c ) // 4
else:
second_product = b
c = c - 2*b
third_product = c // 5
print(first_product+second_product+third_product)
return
exchange(stones)
Konton7