Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
using namespace std; #define ll long long int main(){ int n; cin >> n; string s; cin >> s; string two = s; for(int i = 0; i < n; i++) { if(two[i] == '?') { two[i] = '2'; } } int cnt = 0; for(int i = 0; i < n; i++) { if(two[i] == '2') { cnt++; } else { cnt = 0; } if(cnt >= 2) { cout << "cool" << endl; return 0; } } string three = s; cnt = 0; for(int i =0 ; i < n; i++) { if(three[i] == '?') { three[i] = '3'; } } for(int i = 0; i < n; i++) { if(three[i] == '3') { cnt++; } else { cnt = 0; } if(cnt >= 3) { cout << "cool" << endl; return 0; } } string fives = s; for(int i = 0; i < n; i++) { if(fives[i] == '?') { fives[i] = '5'; } } cnt = 0; for(int i = 0; i < n; i++) { if(fives[i] == '5'){ cnt++; } else { cnt = 0; } if(cnt >= 5) { cout << "cool" << endl; return 0; } } string sevens = s; for(int i = 0; i < n; i++) { if(sevens[i] == '?') { sevens[i] = '7'; } } cnt = 0; for(int i = 0; i < n; i++) { if(sevens[i] == '7') { cnt++; } else { cnt = 0; } if(cnt >= 7) { cout << "cool" << endl; return 0; } } cout << "boring" << endl; return 0; }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)