結果
| 問題 | No.161 制限ジャンケン |
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2019-08-07 11:17:39 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 5,000 ms |
| + 630µs | |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 15,740 KB |
| 最終ジャッジ日時 | 2026-08-17 13:56:50 |
| 合計ジャッジ時間 | 3,653 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
G,C,P = map(int,input().split()) s=input() g,c,p = map(s.count,"GCP") X,Y,Z = map(min,[G,C,P],[c,p,g]) G,C,P = G-X,C-Y,P-Z g,c,p = g-Z,c-X,p-Y x,y,z = map(min,[G,C,P],[g,c,p]) n=(X+Y+Z)*3+(x+y+z) print(n)
_matumo_