結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-01 16:32:04 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 802 ms |
| コンパイル使用メモリ | 147,720 KB |
| 実行使用メモリ | 9,776 KB |
| 最終ジャッジ日時 | 2026-09-01 08:41:42 |
| 合計ジャッジ時間 | 2,320 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 3 |
ソースコード
#include<iostream>
using namespace std;
int main(){
int h,n,H,ans=1;
cin>>h>>n;
while(cin>>H)
ans+=H>h;
cout<<ans<<(ans==1?"st":ans==2?"nd":ans==3?"rd":"th")<<endl;
}