結果
| 問題 |
No.564 背の順
|
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2024-10-25 20:27:07 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 266 bytes |
| コンパイル時間 | 10,976 ms |
| コンパイル使用メモリ | 225,120 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-10-25 20:27:20 |
| 合計ジャッジ時間 | 12,020 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
package main
import . "fmt"
func main() {
var h,n int
Scan(&h,&n)
r:=1
for ;n>0;n-- {
var x int
Scan(&x)
if x>h {
r++
}
}
s:=Sprint(r)
switch r%10 {
default:
s+="th"
case 1:
s+="st"
case 2:
s+="nd"
case 3:
s+="rd"
}
Println(s)
}
ID 21712