Submission #53442


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// "include" {{{
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <deque>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <cstring>
// }}}
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
#define reps(i,n) for(int i=1;i<=(n);++i)
#define all(x) (x).begin(),(x).end()
#define int long long
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3fLL;
vector<int> s(10);
signed main(){
cin.tie(0);
ios::sync_with_stdio(false);
rep(i,5){
cin >> s[i];
}
int cnt = 1;
rep(i,5){
cnt = 1;
rep(j,5){
if(s[i] < s[j]) ++cnt;
}
cout << cnt << '\n';
}
return 0;
}

ステータス

項目 データ
問題 1151 - Hameln Online Judge
ユーザー名 ei1903
投稿日時 2019-08-22 09:36:48
言語 C++14
状態 Accepted
得点 1
ソースコード長 714 Byte
最大実行時間 28 ms
最大メモリ使用量 600 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
1nen2_2_in01.txt AC 25 ms 600 KB
1
1nen2_2_in02.txt AC 20 ms 548 KB
1
1nen2_2_in03.txt AC 21 ms 380 KB
1
1nen2_2_in04.txt AC 17 ms 468 KB
1
1nen2_2_in05.txt AC 28 ms 552 KB
1
1nen2_2_in06.txt AC 17 ms 508 KB
1
1nen2_2_in07.txt AC 25 ms 588 KB
1
1nen2_2_in08.txt AC 14 ms 540 KB
1
1nen2_2_in09.txt AC 24 ms 492 KB
1
1nen2_2_in10.txt AC 17 ms 572 KB
1