幾何コンテスト2013

Submission #3834125

Source codeソースコード

#include<stdio.h>

#define N 300

void run(void){
  int x[N];
  int y[N];
  int i;
  for(i=0;i<N;i++){
    scanf("%d%d",x+i,y+i);
  }
  int inf=100000;
  printf("100\n");
  for(i=0;i<N/3;i++){
    int p[3];
    int j,k;
    for(j=0;j<3;j++){
      int min=0;
      for(k=1;k<N;k++){
	if(y[min]>y[k]){
	  min=k;
	}
      }
      y[min]=inf;
      p[j]=min+1;
    }
    printf("%d %d %d\n",p[0],p[1],p[2]);
  }
}

int main(void){
  run();
  return 0;
}

Submission

Task問題 A - 役人
User nameユーザ名 sansen
Created time投稿日時
Language言語 C (GCC 5.4.1)
Status状態 AC
Score得点 100
Source lengthソースコード長 483 Byte
File nameファイル名
Exec time実行時間 1 ms
Memory usageメモリ使用量 128 KB

Compiler messageコンパイルメッセージ

./Main.c: In function ‘run’:
./Main.c:10:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",x+i,y+i);
^

Test case

Set

Set name Score得点 / Max score Cases
Subtask00 1 / 1 11_rand00.txt
Subtask01 1 / 1 11_rand01.txt
Subtask02 1 / 1 11_rand02.txt
Subtask03 1 / 1 11_rand03.txt
Subtask04 1 / 1 11_rand04.txt
Subtask05 1 / 1 11_rand05.txt
Subtask06 1 / 1 11_rand06.txt
Subtask07 1 / 1 11_rand07.txt
Subtask08 1 / 1 11_rand08.txt
Subtask09 1 / 1 11_rand09.txt
Subtask10 1 / 1 11_rand10.txt
Subtask11 1 / 1 11_rand11.txt
Subtask12 1 / 1 11_rand12.txt
Subtask13 1 / 1 11_rand13.txt
Subtask14 1 / 1 11_rand14.txt
Subtask15 1 / 1 11_rand15.txt
Subtask16 1 / 1 11_rand16.txt
Subtask17 1 / 1 11_rand17.txt
Subtask18 1 / 1 11_rand18.txt
Subtask19 1 / 1 11_rand19.txt
Subtask20 1 / 1 11_rand20.txt
Subtask21 1 / 1 11_rand21.txt
Subtask22 1 / 1 11_rand22.txt
Subtask23 1 / 1 11_rand23.txt
Subtask24 1 / 1 11_rand24.txt
Subtask25 1 / 1 11_rand25.txt
Subtask26 1 / 1 11_rand26.txt
Subtask27 1 / 1 11_rand27.txt
Subtask28 1 / 1 11_rand28.txt
Subtask29 1 / 1 11_rand29.txt
Subtask30 1 / 1 11_rand30.txt
Subtask31 1 / 1 11_rand31.txt
Subtask32 1 / 1 11_rand32.txt
Subtask33 1 / 1 11_rand33.txt
Subtask34 1 / 1 11_rand34.txt
Subtask35 1 / 1 11_rand35.txt
Subtask36 1 / 1 11_rand36.txt
Subtask37 1 / 1 11_rand37.txt
Subtask38 1 / 1 11_rand38.txt
Subtask39 1 / 1 11_rand39.txt
Subtask40 1 / 1 11_rand40.txt
Subtask41 1 / 1 11_rand41.txt
Subtask42 1 / 1 11_rand42.txt
Subtask43 1 / 1 11_rand43.txt
Subtask44 1 / 1 11_rand44.txt
Subtask45 1 / 1 11_rand45.txt
Subtask46 1 / 1 11_rand46.txt
Subtask47 1 / 1 11_rand47.txt
Subtask48 1 / 1 11_rand48.txt
Subtask49 1 / 1 11_rand49.txt
Subtask50 1 / 1 11_rand50.txt
Subtask51 1 / 1 11_rand51.txt
Subtask52 1 / 1 11_rand52.txt
Subtask53 1 / 1 11_rand53.txt
Subtask54 1 / 1 11_rand54.txt
Subtask55 1 / 1 11_rand55.txt
Subtask56 1 / 1 11_rand56.txt
Subtask57 1 / 1 11_rand57.txt
Subtask58 1 / 1 11_rand58.txt
Subtask59 1 / 1 11_rand59.txt
Subtask60 1 / 1 11_rand60.txt
Subtask61 1 / 1 11_rand61.txt
Subtask62 1 / 1 11_rand62.txt
Subtask63 1 / 1 11_rand63.txt
Subtask64 1 / 1 11_rand64.txt
Subtask65 1 / 1 11_rand65.txt
Subtask66 1 / 1 11_rand66.txt
Subtask67 1 / 1 11_rand67.txt
Subtask68 1 / 1 11_rand68.txt
Subtask69 1 / 1 11_rand69.txt
Subtask70 1 / 1 11_rand70.txt
Subtask71 1 / 1 11_rand71.txt
Subtask72 1 / 1 11_rand72.txt
Subtask73 1 / 1 11_rand73.txt
Subtask74 1 / 1 11_rand74.txt
Subtask75 1 / 1 11_rand75.txt
Subtask76 1 / 1 11_rand76.txt
Subtask77 1 / 1 11_rand77.txt
Subtask78 1 / 1 11_rand78.txt
Subtask79 1 / 1 11_rand79.txt
Subtask80 1 / 1 11_rand80.txt
Subtask81 1 / 1 11_rand81.txt
Subtask82 1 / 1 11_rand82.txt
Subtask83 1 / 1 11_rand83.txt
Subtask84 1 / 1 11_rand84.txt
Subtask85 1 / 1 11_rand85.txt
Subtask86 1 / 1 11_rand86.txt
Subtask87 1 / 1 11_rand87.txt
Subtask88 1 / 1 11_rand88.txt
Subtask89 1 / 1 11_rand89.txt
Subtask90 1 / 1 11_rand90.txt
Subtask91 1 / 1 11_rand91.txt
Subtask92 1 / 1 11_rand92.txt
Subtask93 1 / 1 11_rand93.txt
Subtask94 1 / 1 11_rand94.txt
Subtask95 1 / 1 11_rand95.txt
Subtask96 1 / 1 11_rand96.txt
Subtask97 1 / 1 11_rand97.txt
Subtask98 1 / 1 11_rand98.txt
Subtask99 1 / 1 11_rand99.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
11_rand00.txt AC 1 ms 128 KB
11_rand01.txt AC 1 ms 128 KB
11_rand02.txt AC 1 ms 128 KB
11_rand03.txt AC 1 ms 128 KB
11_rand04.txt AC 1 ms 128 KB
11_rand05.txt AC 1 ms 128 KB
11_rand06.txt AC 1 ms 128 KB
11_rand07.txt AC 1 ms 128 KB
11_rand08.txt AC 1 ms 128 KB
11_rand09.txt AC 1 ms 128 KB
11_rand10.txt AC 1 ms 128 KB
11_rand11.txt AC 1 ms 128 KB
11_rand12.txt AC 1 ms 128 KB
11_rand13.txt AC 1 ms 128 KB
11_rand14.txt AC 1 ms 128 KB
11_rand15.txt AC 1 ms 128 KB
11_rand16.txt AC 1 ms 128 KB
11_rand17.txt AC 1 ms 128 KB
11_rand18.txt AC 1 ms 128 KB
11_rand19.txt AC 1 ms 128 KB
11_rand20.txt AC 1 ms 128 KB
11_rand21.txt AC 1 ms 128 KB
11_rand22.txt AC 1 ms 128 KB
11_rand23.txt AC 1 ms 128 KB
11_rand24.txt AC 1 ms 128 KB
11_rand25.txt AC 1 ms 128 KB
11_rand26.txt AC 1 ms 128 KB
11_rand27.txt AC 1 ms 128 KB
11_rand28.txt AC 1 ms 128 KB
11_rand29.txt AC 1 ms 128 KB
11_rand30.txt AC 1 ms 128 KB
11_rand31.txt AC 1 ms 128 KB
11_rand32.txt AC 1 ms 128 KB
11_rand33.txt AC 1 ms 128 KB
11_rand34.txt AC 1 ms 128 KB
11_rand35.txt AC 1 ms 128 KB
11_rand36.txt AC 1 ms 128 KB
11_rand37.txt AC 1 ms 128 KB
11_rand38.txt AC 1 ms 128 KB
11_rand39.txt AC 1 ms 128 KB
11_rand40.txt AC 1 ms 128 KB
11_rand41.txt AC 1 ms 128 KB
11_rand42.txt AC 1 ms 128 KB
11_rand43.txt AC 1 ms 128 KB
11_rand44.txt AC 1 ms 128 KB
11_rand45.txt AC 1 ms 128 KB
11_rand46.txt AC 1 ms 128 KB
11_rand47.txt AC 1 ms 128 KB
11_rand48.txt AC 1 ms 128 KB
11_rand49.txt AC 1 ms 128 KB
11_rand50.txt AC 1 ms 128 KB
11_rand51.txt AC 1 ms 128 KB
11_rand52.txt AC 1 ms 128 KB
11_rand53.txt AC 1 ms 128 KB
11_rand54.txt AC 1 ms 128 KB
11_rand55.txt AC 1 ms 128 KB
11_rand56.txt AC 1 ms 128 KB
11_rand57.txt AC 1 ms 128 KB
11_rand58.txt AC 1 ms 128 KB
11_rand59.txt AC 1 ms 128 KB
11_rand60.txt AC 1 ms 128 KB
11_rand61.txt AC 1 ms 128 KB
11_rand62.txt AC 1 ms 128 KB
11_rand63.txt AC 1 ms 128 KB
11_rand64.txt AC 1 ms 128 KB
11_rand65.txt AC 1 ms 128 KB
11_rand66.txt AC 1 ms 128 KB
11_rand67.txt AC 1 ms 128 KB
11_rand68.txt AC 1 ms 128 KB
11_rand69.txt AC 1 ms 128 KB
11_rand70.txt AC 1 ms 128 KB
11_rand71.txt AC 1 ms 128 KB
11_rand72.txt AC 1 ms 128 KB
11_rand73.txt AC 1 ms 128 KB
11_rand74.txt AC 1 ms 128 KB
11_rand75.txt AC 1 ms 128 KB
11_rand76.txt AC 1 ms 128 KB
11_rand77.txt AC 1 ms 128 KB
11_rand78.txt AC 1 ms 128 KB
11_rand79.txt AC 1 ms 128 KB
11_rand80.txt AC 1 ms 128 KB
11_rand81.txt AC 1 ms 128 KB
11_rand82.txt AC 1 ms 128 KB
11_rand83.txt AC 1 ms 128 KB
11_rand84.txt AC 1 ms 128 KB
11_rand85.txt AC 1 ms 128 KB
11_rand86.txt AC 1 ms 128 KB
11_rand87.txt AC 1 ms 128 KB
11_rand88.txt AC 1 ms 128 KB
11_rand89.txt AC 1 ms 128 KB
11_rand90.txt AC 1 ms 128 KB
11_rand91.txt AC 1 ms 128 KB
11_rand92.txt AC 1 ms 128 KB
11_rand93.txt AC 1 ms 128 KB
11_rand94.txt AC 1 ms 128 KB
11_rand95.txt AC 1 ms 128 KB
11_rand96.txt AC 1 ms 128 KB
11_rand97.txt AC 1 ms 128 KB
11_rand98.txt AC 1 ms 128 KB
11_rand99.txt AC 1 ms 128 KB