結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| ユーザー |
Myogi_dayo
|
| 提出日時 | 2017-05-02 20:39:35 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-14 04:45:58 |
| 合計ジャッジ時間 | 1,062 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 13 |
ソースコード
#include <stdio.h>
int main(void){
int n;
scanf("%d", &n);
int ans = 1;
int kscore;
scanf("%d", &kscore);
printf("%d", ans);
for(int i = 0; i < n; i++){
int score;
scanf("%d", &score);
if(score > kscore)ans++;
printf("%d", ans);
}
return 0;
}
Myogi_dayo