結果
| 問題 | No.2030 Googol Strings |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-09 14:30:12 |
| 言語 | Lua (LuaJit 2.1.1792588164) |
| 結果 |
AC
不安定
|
| 実行時間 | 8 ms / 2,000 ms |
| + 317µs | |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 95 ms |
| コンパイル使用メモリ | 9,772 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2026-11-10 23:38:20 |
| 合計ジャッジ時間 | 1,990 ms |
|
ジャッジサーバーID (参考情報) |
judge7_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 20 |
ソースコード
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