Submission #2708708
Source Code Expand
#include<bits/stdc++.h> using namespace std; using Int = long long; //INSERT ABOVE HERE signed main(){ int n; cin>>n; vector<string> a(n); for(int i=0;i<n;i++) cin>>a[i]; for(int i=0;i<n;i++){ int res=0; for(int j=0;j<10;j+=2) res+=a[i][j]-'0'; cout<<res<<endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | F - チェックディジット |
User | beet |
Language | C++14 (GCC 5.4.1) |
Score | 16 |
Code Size | 318 Byte |
Status | AC |
Exec Time | 228 ms |
Memory | 7552 KB |
Judge Result
Set Name | Subtask00 | Subtask01 | Subtask02 | Subtask03 | Subtask04 | Subtask05 | Subtask06 | Subtask07 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 16 / 25 | 0 / 25 | 0 / 25 | 0 / 25 | 0 / 25 | 0 / 25 | 0 / 25 | 0 / 25 | ||||||||||||||||
Status |
|
|
|
|
|
|
|
|
Set Name | Test Cases |
---|---|
Subtask00 | 00_n_3e1 |
Subtask01 | 01_n_1e2 |
Subtask02 | 02_n_3e2 |
Subtask03 | 03_n_1e3 |
Subtask04 | 04_n_3e3 |
Subtask05 | 05_n_1e4 |
Subtask06 | 06_n_3e4 |
Subtask07 | 07_n_1e5 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_n_3e1 | AC | 1 ms | 256 KB |
01_n_1e2 | AC | 1 ms | 256 KB |
02_n_3e2 | AC | 2 ms | 256 KB |
03_n_1e3 | AC | 3 ms | 256 KB |
04_n_3e3 | AC | 8 ms | 512 KB |
05_n_1e4 | AC | 24 ms | 1024 KB |
06_n_3e4 | AC | 69 ms | 2432 KB |
07_n_1e5 | AC | 228 ms | 7552 KB |
sample | AC | 1 ms | 256 KB |