結果
問題 |
No.2030 Googol Strings
|
ユーザー |
👑 |
提出日時 | 2022-08-09 14:30:12 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 245 bytes |
コンパイル時間 | 138 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-09-19 19:57:53 |
合計ジャッジ時間 | 1,761 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 16 |
ソースコード
local n = io.read("*n", "*l") for i = 1, n do local x = io.read() local y = io.read() local xy = x..y local yx = y..x if xy < yx then print "Y" elseif yx < xy then print "X" else print(#x < #y and "Y" or "X") end end