QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#309442#8031. GitignoreEbiarat#WA 0ms3516kbC++20197b2024-01-20 17:22:082024-01-20 17:22:09

Judging History

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

  • [2024-01-20 17:22:09]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3516kb
  • [2024-01-20 17:22:08]
  • 提交

answer

#include <iostream>

using namespace std;

int main() {
    long int n, i1, i2;
    cin >> n;
    i1 = n/3;
    i2 = (n-1)/3;
    cout<< (i1+1)*i1 + n*i2 - 3*i2*(i2+1)/2;
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3516kb

input:

2
3 0
data/train
data/test
model
3 1
data/train
data/test
model
data/sample

output:

0

result:

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