結果
問題 | No.2030 Googol Strings |
ユーザー |
![]() |
提出日時 | 2022-08-05 21:36:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 49 ms / 2,000 ms |
コード長 | 376 bytes |
コンパイル時間 | 1,645 ms |
コンパイル使用メモリ | 168,000 KB |
実行使用メモリ | 10,032 KB |
最終ジャッジ日時 | 2024-09-15 17:52:08 |
合計ジャッジ時間 | 3,078 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int T; cin >> T; for (int i = 0; i < T; i++){ string x; cin >> x; string y; cin >> y; if (x + y > y + x){ cout << "X" << endl; } else if (x + y < y + x){ cout << "Y" << endl; } else if (x > y){ cout << "X" << endl; } else { cout << "Y" << endl; } } }