結果
| 問題 |
No.91 赤、緑、青の石
|
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-05 23:07:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 443 bytes |
| コンパイル時間 | 215 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-26 05:40:17 |
| 合計ジャッジ時間 | 2,391 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 WA * 18 |
ソースコード
stones = sorted([ int(v) for v in input().split() ])
def exchange(inlist):
a, b, c = inlist
if b != 0:
d = min( ( c - a ) // 3, b)
a, c = a + d, c - d * 2
d = a
inlist = sorted([ i - a for i in [a,b,c] ])
else:
d = c // 5
inlist = [0,0,(c-5*d)]
return(inlist,d)
ans = 0
product = 1
while product != 0:
stones, product = exchange(stones)
ans += product
print(ans)
Konton7