結果
問題 | No.2030 Googol Strings |
ユーザー | stng |
提出日時 | 2022-08-07 10:05:06 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 183 ms / 2,000 ms |
コード長 | 434 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 81,724 KB |
実行使用メモリ | 80,236 KB |
最終ジャッジ日時 | 2023-10-17 06:02:19 |
合計ジャッジ時間 | 3,289 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 159 ms
76,900 KB |
testcase_01 | AC | 45 ms
59,656 KB |
testcase_02 | AC | 43 ms
57,964 KB |
testcase_03 | AC | 38 ms
53,512 KB |
testcase_04 | AC | 131 ms
76,524 KB |
testcase_05 | AC | 71 ms
75,108 KB |
testcase_06 | AC | 65 ms
78,764 KB |
testcase_07 | AC | 76 ms
80,236 KB |
testcase_08 | AC | 76 ms
80,236 KB |
testcase_09 | AC | 123 ms
75,104 KB |
testcase_10 | AC | 123 ms
75,116 KB |
testcase_11 | AC | 124 ms
75,112 KB |
testcase_12 | AC | 181 ms
76,096 KB |
testcase_13 | AC | 183 ms
76,284 KB |
testcase_14 | AC | 83 ms
75,120 KB |
testcase_15 | AC | 163 ms
76,092 KB |
testcase_16 | AC | 103 ms
76,492 KB |
ソースコード
t = int(input()) for i in range(t): x = input() y = input() lx = len(x) ly = len(y) f = False for j in range(max(2*lx,2*ly)): if x[j%lx] < y[j%ly]: f = True print("Y") break elif x[j%lx] > y[j%ly]: f = True print("X") break if f == False: if lx < ly: print("Y") else: print("X")