結果

問題 No.564 背の順
ユーザー yamyam122
提出日時 2017-09-29 10:48:10
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 480 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 55,196 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-15 19:47:54
合計ジャッジ時間 939 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main(){
    int H, N;
    int count =1;
    std::cin >> H >> N; std::cin.ignore();
    
    for(int t; std::cin>>t;){
        if(t>H) count++;
    }
    
    switch(count){
        case 1:
        std::cout << "1st" << std::endl; break;
        case 2:
        std::cout <<"2nd" <<std::endl; break;
        case 3:
        std::cout << "3rd" <<std::endl; break;
        default:
        std::cout << count << "th" <<std::endl; break;
    }
    return 0;
}
0