항 저 우 전기 acm 당신 의 현재 찾기 (2)
1871 단어 find
이상 하거나 주의해 야 할 문 제 는 cin 을 사용 할 수 없다 는 것 입 니 다. 너무 느 립 니 다.
c + + 소스 코드:
#include<iostream>
#include<cstdio>
#include<map>
using namespace std;
int main(){
int n;
while(scanf("%d",&n)==1&&n!=0){
int res=0,b;
for(int i=0;i<n;i++){
scanf("%d",&b);
res =res^b;
}
printf("%d
",res);
}
return 0;
}
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
[CS] 고차함수 Day-19함수를 변수에 할당할 수 있기 때문에, 함수를 배열의 요소나 객체의 속성값으로 저장할 수 있습니다. ex) 변수에 함수를 할당하는 경우 (함수 표현식) 호이스팅 : 선언된 위치에 관계없이 어디서든 함수를 사용할 수 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.