fork download
  1. #include<iostream>
  2. #include<math.h>
  3. #include<stdio.h>
  4. #include<stdlib.h>
  5. #include<string.h>
  6.  
  7. using namespace std;
  8.  
  9. int S[100001], R[100001];
  10. int main(){
  11. string pedras;
  12. cin >> pedras;
  13. cout << (pedras[2]=='P');
  14. }
Success #stdin #stdout 0s 16016KB
stdin
RRPR
stdout
1