結果
| 問題 | No.161 制限ジャンケン |
| コンテスト | |
| ユーザー |
tookunn_1213
|
| 提出日時 | 2015-03-06 00:06:18 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 200 bytes |
| 記録 | |
| コンパイル時間 | 146 ms |
| コンパイル使用メモリ | 77,396 KB |
| 最終ジャッジ日時 | 2025-12-03 14:25:16 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 1 WA * 15 |
ソースコード
G,C,P = map(int,raw_input().split(' '))#GCP
S = raw_input()
count = 0
g,c,p = 0,0,0
for s in S:
if s == 'G':
g += 1
if s == 'C':
c += 1
if s == 'P':
p += 1
count = (g + c + p) * 3
print count
tookunn_1213