結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-14 16:37:24 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 388 bytes |
| 記録 | |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 38,656 KB |
| 実行使用メモリ | 5,760 KB |
| 最終ジャッジ日時 | 2026-07-07 02:48:33 |
| 合計ジャッジ時間 | 1,156 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 3 |
ソースコード
#include <stdio.h>
int main(){
int height,val;
scanf("%d%d",&height,&val);
int rank = 1;
int student[val];
for(int i = 0;i < val - 1;i ++){
scanf("%d",&student[i]);
if(student[i] > height){
rank++;
}
}
if(rank == 1){
printf("%dst",rank);
}else if(rank == 2){
printf("%dnd",rank);
}else if(rank == 3){
printf("%drd",rank);
}else{
printf("%dth",rank);
}
}
sasa