結果
問題 | No.742 にゃんにゃんにゃん 猫の挨拶 |
ユーザー |
|
提出日時 | 2018-10-28 20:44:30 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1,339 ms / 2,500 ms |
コード長 | 312 bytes |
コンパイル時間 | 869 ms |
コンパイル使用メモリ | 69,408 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-19 07:15:21 |
合計ジャッジ時間 | 3,221 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <iostream>#include <vector>using namespace std;int main(int argc, char* argv[]){int N;cin>>N;int i,j;vector<int> M(N);for (i=0;i<N;i++){cin>>M[i];}int Count=0;for (i=0;i<N-1;i++){for (j=i+1;j<N;j++){if (M[i]>=M[j]){Count++;}}}cout<<Count<<endl;return 0;}