QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#396018 | #4274. $2x + 2$ | megz112233 | WA | 1ms | 3632kb | C++20 | 380b | 2024-04-22 10:02:01 | 2024-04-22 10:02:01 |
Judging History
answer
#include <bits/stdc++.h>
#define sz(x) (int)x.size()
#define bigint __int128
#define el '\n'
#define ll long long
#define ld long double
using namespace std;
const int N = 3e5 + 4, M = 1e5 + 10, mod = 1e9 + 7;
void acc() {
long long n;
cin >> n;
cout << (2 * n / 3) +1<< el;
}
int main() {
int t = 1;
//cin >> t;
while (t--)acc();
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3632kb
input:
4
output:
3
result:
ok answer is '3'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3560kb
input:
10000000000
output:
6666666667
result:
ok answer is '6666666667'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
11537
output:
7692
result:
ok answer is '7692'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
41309
output:
27540
result:
ok answer is '27540'
Test #5:
score: -100
Wrong Answer
time: 0ms
memory: 3624kb
input:
8191927142339937565554845978095081242540169480073285738552305926582959325059543812213073905385467089
output:
1
result:
wrong answer expected '546128476155995837703656398539...9550039695874808715936923644727', found '1'