Submission #3023844
Source Code Expand
# coding: utf-8 S = input() T = input() for i in range(100): Scheck=S[i+1:]+S[0:i+1] if(Scheck==T): print("Yes") exit() print("No")
Submission Info
Submission Time | |
---|---|
Task | B - String Rotation |
User | shakayami |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 165 Byte |
Status | AC |
Exec Time | 18 ms |
Memory | 2940 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01, sample_02, sample_03 |
All | 0_small_0, 0_small_1, 0_small_2, 0_small_3, 1_medium_0, 1_medium_1, 1_medium_2, 2_max_0, 2_max_1, 2_max_2, 2_max_3, sample_01, sample_02, sample_03 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_small_0 | AC | 18 ms | 2940 KB |
0_small_1 | AC | 18 ms | 2940 KB |
0_small_2 | AC | 18 ms | 2940 KB |
0_small_3 | AC | 18 ms | 2940 KB |
1_medium_0 | AC | 18 ms | 2940 KB |
1_medium_1 | AC | 18 ms | 2940 KB |
1_medium_2 | AC | 18 ms | 2940 KB |
2_max_0 | AC | 18 ms | 2940 KB |
2_max_1 | AC | 18 ms | 2940 KB |
2_max_2 | AC | 18 ms | 2940 KB |
2_max_3 | AC | 18 ms | 2940 KB |
sample_01 | AC | 17 ms | 2940 KB |
sample_02 | AC | 17 ms | 2940 KB |
sample_03 | AC | 18 ms | 2940 KB |