結果
問題 |
No.2030 Googol Strings
|
ユーザー |
![]() |
提出日時 | 2022-08-05 23:28:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 419 bytes |
コンパイル時間 | 190 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 14,528 KB |
最終ジャッジ日時 | 2024-09-15 21:12:08 |
合計ジャッジ時間 | 15,353 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 15 TLE * 1 |
ソースコード
import sys input = sys.stdin.readline T=int(input()) for tests in range(T): x=input().strip() y=input().strip() for i in range(max(len(x)*2,len(y)*2)): if x[i%len(x)]>y[i%len(y)]: print("X") break elif x[i%len(x)]<y[i%len(y)]: print("Y") break else: if len(x)>len(y): print("X") else: print("Y")