Submission #58770
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #include<bits/stdc++.h> #define INF 9223372036854775807LL #define mod 1000000007 #define SYOU(x) setprecision(x+1) #define abs(x,y) (max(x,y)-min(x,y)) #define lol long long #define mp make_pair #define fi first #define se second using namespace std; signed main(){ cin.tie(0); ios::sync_with_stdio( false ); int n; string a,b; cin >>n; cin >>a>>b; if (a>b) cout << 'a' ; else if (a<b) cout << 'b' ; else cout << "friends" ; cout << '\n' ; return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0915 - Comparator |
ユーザー名 | ei1923 |
投稿日時 | 2020-02-22 22:40:14 |
言語 | C++14 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 509 Byte |
最大実行時間 | 29 ms |
最大メモリ使用量 | 644 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in_1.txt | AC | 29 ms | 604 KB |
1
|
in_2.txt | AC | 17 ms | 560 KB |
1
|
in_3.txt | AC | 20 ms | 640 KB |
1
|
in_4.txt | AC | 21 ms | 472 KB |
1
|
in_5.txt | AC | 24 ms | 556 KB |
1
|
large_1.txt | AC | 20 ms | 512 KB |
1
|
large_2.txt | AC | 21 ms | 472 KB |
1
|
large_3.txt | AC | 17 ms | 560 KB |
1
|
rand_1.txt | AC | 19 ms | 644 KB |
1
|
rand_2.txt | AC | 18 ms | 596 KB |
1
|
rand_3.txt | AC | 25 ms | 552 KB |
1
|