結果
問題 | No.2030 Googol Strings |
ユーザー | とりゐ |
提出日時 | 2022-07-02 19:33:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 282 ms / 2,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 185 ms |
コンパイル使用メモリ | 82,040 KB |
実行使用メモリ | 456,836 KB |
最終ジャッジ日時 | 2024-05-09 21:16:09 |
合計ジャッジ時間 | 4,173 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 171 ms
77,196 KB |
testcase_01 | AC | 221 ms
246,004 KB |
testcase_02 | AC | 120 ms
237,552 KB |
testcase_03 | AC | 37 ms
53,672 KB |
testcase_04 | AC | 155 ms
77,048 KB |
testcase_05 | AC | 178 ms
244,496 KB |
testcase_06 | AC | 203 ms
405,560 KB |
testcase_07 | AC | 251 ms
456,836 KB |
testcase_08 | AC | 282 ms
456,332 KB |
testcase_09 | AC | 45 ms
61,196 KB |
testcase_10 | AC | 48 ms
62,584 KB |
testcase_11 | AC | 46 ms
61,684 KB |
testcase_12 | AC | 122 ms
76,380 KB |
testcase_13 | AC | 230 ms
141,328 KB |
testcase_14 | AC | 229 ms
246,724 KB |
testcase_15 | AC | 218 ms
245,564 KB |
testcase_16 | AC | 198 ms
237,716 KB |
ソースコード
def solve(): x=input() y=input() if x+y==y+x: if x<y:print('Y') else:print('X') return cx=0 while cx*len(x)<len(y): cx+=1 cy=0 while cy*len(y)<len(x): cy+=1 xx=x*(cx+1)*100 yy=y*(cy+1)*100 if xx<yy:print('Y') else:print('X') for _ in range(int(input())): solve()