結果
| 問題 | No.2030 Googol Strings |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-09 14:30:12 |
| 言語 | Lua (LuaJit 2.1.1774638290) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 2,000 ms |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 72 ms |
| コンパイル使用メモリ | 7,840 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2026-04-08 08:15:12 |
| 合計ジャッジ時間 | 1,695 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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