QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#133590#4248. Number TheoryalixanWA 1ms3584kbC++17399b2023-08-02 11:34:572023-08-02 11:35:00

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-08-02 11:35:00]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3584kb
  • [2023-08-02 11:34:57]
  • 提交

answer

 #include<bits/stdc++.h>

using namespace std;

void __init__(){
	ios_base::sync_with_stdio(0);
	cin.tie(0); cout.tie(0); 
	srand(time(NULL));
}

void solve(){
	int n; cin>> n;
	
	cout<< (n + 1) / 2;
}
	
int main() {
	__init__();
	
	//int t; cin>> t;
	int t = 1;
	int now = 1;
	
	while(t--){
		//cout<< "Case #"<<now<< ": Katya's place can be ";
		now++;
		solve();
	}	
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3584kb

input:

2

output:

1

result:

wrong answer 1st numbers differ - expected: '0', found: '1'