結果
| 問題 |
No.293 4>7の世界
|
| コンテスト | |
| ユーザー |
troro_kelp
|
| 提出日時 | 2018-10-16 18:20:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 362 bytes |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 72,584 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-12 18:43:29 |
| 合計ジャッジ時間 | 1,481 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 15 WA * 5 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
int main(void)
{
string N, M; cin >> N >> M;
int n=N.size(), m=M.size();
if(n>m) cout << N << endl;
else if(n<m) cout << M << endl;
else {
if(N>M) cout << N << endl;
else cout << M << endl;
}
return 0;
}
troro_kelp