Submission #2708720
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++) for(Int k=0;k<j;k++) res+=a[i][k]>a[i][j]; res&=1; cout<<res<<endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | F - チェックディジット |
User | beet |
Language | C++14 (GCC 5.4.1) |
Score | 200 |
Code Size | 364 Byte |
Status | AC |
Exec Time | 236 ms |
Memory | 7424 KB |
Judge Result
Set Name | Subtask00 | Subtask01 | Subtask02 | Subtask03 | Subtask04 | Subtask05 | Subtask06 | Subtask07 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 25 / 25 | 25 / 25 | 25 / 25 | 25 / 25 | 25 / 25 | 25 / 25 | 25 / 25 | 25 / 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 | 4 ms | 256 KB |
04_n_3e3 | AC | 8 ms | 512 KB |
05_n_1e4 | AC | 25 ms | 1024 KB |
06_n_3e4 | AC | 71 ms | 2432 KB |
07_n_1e5 | AC | 236 ms | 7424 KB |
sample | AC | 1 ms | 256 KB |