結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
suppy193
|
| 提出日時 | 2020-03-20 15:11:31 |
| 言語 | C90(gcc15) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 452 bytes |
| 記録 | |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 37,720 KB |
| 最終ジャッジ日時 | 2026-02-24 01:04:59 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 9 |
ソースコード
#include <stdio.h>
int main(void)
{
int i;
int h, n;
int h1;
int count;
scanf("%d%d", &h, &n);
count = 0;
for(i = 0;i < n;i++){
scanf("%d", &h1);
if(h > h1){
count++;
}
}
if(count % 10 == 1){
printf("%dst\n", count);
}
if(count % 10 == 2){
printf("%dnd\n", count);
}
if(count % 10 == 3){
printf("%drd\n", count);
}
return 0;
}
suppy193