Submission #180669
Source Code Expand
#include<iostream> using namespace std; int main() { // 整数の入力 int n; cin >> n; int out = 0; int ai = 0; int i; for(i = 0;i<n;i++){ cin >> ai; if(ai == 2 || ai == 4 || ai == 8){ ai += 1; } if(ai == 5){ ai+= 2; } if(ai == 6){ ai +=3; } } cout << ai << endl; }
Submission Info
Submission Time | |
---|---|
Task | B - 花占い |
User | hirahira |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 355 Byte |
Status | WA |
Exec Time | 24 ms |
Memory | 924 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_1.txt, test_112358.txt, test_1379137913.txt, test_1414213562.txt, test_1732151817.txt, test_2.txt, test_2236167977.txt, test_2645751311.txt, test_3.txt, test_3141592653.txt, test_4.txt, test_5.txt, test_6.txt, test_6666666666.txt, test_7.txt, test_73.txt, test_8.txt, test_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | WA | 22 ms | 920 KB |
sample_02.txt | WA | 22 ms | 864 KB |
test_1.txt | WA | 22 ms | 920 KB |
test_112358.txt | WA | 22 ms | 856 KB |
test_1379137913.txt | WA | 23 ms | 916 KB |
test_1414213562.txt | WA | 22 ms | 796 KB |
test_1732151817.txt | WA | 21 ms | 916 KB |
test_2.txt | WA | 21 ms | 832 KB |
test_2236167977.txt | WA | 24 ms | 908 KB |
test_2645751311.txt | WA | 24 ms | 796 KB |
test_3.txt | WA | 23 ms | 796 KB |
test_3141592653.txt | WA | 21 ms | 836 KB |
test_4.txt | WA | 21 ms | 924 KB |
test_5.txt | WA | 23 ms | 920 KB |
test_6.txt | WA | 24 ms | 916 KB |
test_6666666666.txt | WA | 23 ms | 920 KB |
test_7.txt | WA | 22 ms | 916 KB |
test_73.txt | WA | 21 ms | 920 KB |
test_8.txt | WA | 23 ms | 916 KB |
test_9.txt | WA | 22 ms | 860 KB |