Submission #6510595
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main() { string s; char jubge = 'z'; bool a = true; cin >> s; sort(s.begin(),s.end()); for(int i = 0; i < s.size(); i++){ if(jubge == s.at(i)){ a = false; break; }else{ jubge = s.at(i); } } if(a) cout << "yes" << endl; else cout << "no" << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - Restricted |
User | keiiiiiii |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 375 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | a01, a02 |
All | a01, a02, b03, b04, b05, b06, b07, b08 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
a01 | WA | 1 ms | 256 KB |
a02 | WA | 1 ms | 256 KB |
b03 | WA | 1 ms | 256 KB |
b04 | WA | 1 ms | 256 KB |
b05 | WA | 1 ms | 256 KB |
b06 | WA | 1 ms | 256 KB |
b07 | WA | 1 ms | 256 KB |
b08 | WA | 1 ms | 256 KB |