結果
問題 |
No.365 ジェンガソート
|
ユーザー |
![]() |
提出日時 | 2019-04-09 22:33:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 514 ms |
コンパイル使用メモリ | 53,716 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 04:47:02 |
合計ジャッジ時間 | 2,048 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 25 |
ソースコード
#include <iostream> using namespace std; int main() { int n, a1st, a, ans = 0; cin >> n >> a1st; for(int i = 1; i < n; i++){ cin >> a; if(a < a1st) ++ans; } cout << ans << endl; return 0; }