Submission #1213041
Source Code Expand
#include "iostream" #include "climits" #include "list" #include "queue" #include "stack" #include "set" #include "functional" #include "algorithm" #include "math.h" #include "utility" #include "string" #include "map" #include "unordered_map" #include "iomanip" #include "random" using namespace std; const long long int MOD = 1000000007; int M; string s[10000]; string t; int l, r; int main(){ cin >> M; for (int i = 0; i < M; i++) { cin >> s[i]; } cin >> t; l = 1; r = 1; for (int i = 0; i < M; i++) { string box = s[i]; for (auto j = box.begin(); j != box.end(); ++j) { if (*j == '?')*j = 'a'; } if (t >= box) { r++; } box = s[i]; for (auto j = box.begin(); j != box.end(); ++j) { if (*j == '?')*j = 'z'; } if (t > box)l++; } for (int i = l; i <= r; i++)cout << i << " "; cout << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Atcoder Handles |
User | olphe |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 893 Byte |
Status | WA |
Exec Time | 11 ms |
Memory | 896 KB |
Judge Result
Set Name | Subtask1 | Subtask2 | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 130 | 0 / 120 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Subtask1 | sub1_in1.txt, sub1_in2.txt, sub1_in3.txt |
Subtask2 | sub1_in1.txt, sub1_in2.txt, sub1_in3.txt, sub2_in1.txt, sub2_in2.txt, sub2_in3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sub1_in1.txt | WA | 1 ms | 384 KB |
sub1_in2.txt | WA | 2 ms | 384 KB |
sub1_in3.txt | WA | 2 ms | 384 KB |
sub2_in1.txt | WA | 1 ms | 384 KB |
sub2_in2.txt | WA | 6 ms | 640 KB |
sub2_in3.txt | WA | 11 ms | 896 KB |