QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#573237 | #1. I/O Test | 7_divided_by_3 | 200 ✓ | 626ms | 3892kb | C++20 | 949b | 2024-09-18 17:51:42 | 2024-09-18 17:51:43 |
Judging History
config.txt
10000000 10000000
input_test
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve()
{
}
void solve1()
{
int n;scanf("%d",&n);
ll ans=0;
for(int i=0,x=0;i<n;scanf("%d",&x),i++,ans+=x);
printf("%lld",ans);
}
void solve2()
{
int n;scanf("%d",&n);
for(int i=0;i<n;i++,printf("100000000 "));
}
int main()
{
ios::sync_with_stdio(false);cin.tie(nullptr);
//int T;cin>>T;while(T--)
solve1();
return 0;
}
output_test
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve()
{
}
void solve1()
{
int n;scanf("%d",&n);
ll ans=0;
for(int i=0,x=0;i<n;scanf("%d",&x),i++,ans+=x);
printf("%lld",ans);
}
void solve2()
{
int n;scanf("%d",&n);
for(int i=0;i<n;i++,printf("100000000 "));
}
int main()
{
ios::sync_with_stdio(false);cin.tie(nullptr);
//int T;cin>>T;while(T--)
solve2();
return 0;
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 626ms
memory: 3892kb
input:
10000000 658972110 973882986 624028092 719942158 902626323 388573645 419156333 371578691 143486038 752797863 420288540 679217555 479860935 731130944 175034178 215480220 485192429 476565194 741145695 846933853 429291115 746209251 451103225 317085114 830921451 457822420 694096512 553079094 408878969 8...
output:
5500226347287267
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 157ms
memory: 3884kb
input:
10000000
output:
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...
result:
points 1.0 output test passed