Submission #1954222
Source Code Expand
#include<bits/stdc++.h> using namespace std; int main(void){ int a, b, c; scanf("%d/%d/%d", &a, &b, &c); printf("%d/%d/%d\n", a == 2017 ? 2018 : a, b, c); }
Submission Info
Submission Time | |
---|---|
Task | A - Already 2018 |
User | vanessi |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 172 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:7:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d/%d/%d", &a, &b, &c); ^
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | a01, a02 |
All | a01, a02, b03, b04, b05, b06, b07, b08 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
a01 | WA | 1 ms | 256 KB |
a02 | WA | 1 ms | 256 KB |
b03 | WA | 1 ms | 256 KB |
b04 | WA | 1 ms | 256 KB |
b05 | WA | 1 ms | 256 KB |
b06 | WA | 1 ms | 256 KB |
b07 | WA | 1 ms | 256 KB |
b08 | WA | 1 ms | 256 KB |