結果

問題 No.564 背の順
ユーザー StarMatyan
提出日時 2018-12-15 17:18:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 400 bytes
コンパイル時間 470 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-25 06:18:10
合計ジャッジ時間 1,324 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

first =input();
firstdata = first.split(" ");

sintyo = int(firstdata[0]);
num = int(firstdata[1])-1;
result=1;

for inputer in range(num):
	hikaku = int(input());
	if hikaku > sintyo:
		result = result+1;

if result%10==1:
	result = str(result)+"st";
elif result%10 ==2:
	result = str(result)+"nd"; 
elif result%10 ==3:
	result = str(result)+"rd"; 
else:
	result = str(result)+"th"; 

print(result);
0