Submission #186909
Source Code Expand
#include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <vector> #include <string> #include <map> #include <set> #include <queue> #include <stack> #include <algorithm> using namespace std; #define rep(i,j) REP((i), 0, (j)) #define REP(i,j,k) for(int i=(j);(i)<(k);++i) #define BW(a,x,b) ((a)<=(x)&&(x)<=(b)) #define F first #define S second #define INF 1 << 30 typedef pair<int, int> pi; typedef pair<int, pi> pii; typedef vector<int> vi; typedef queue<int> qi; typedef long long ll; int n; int main(){ scanf("%d", &n); if(n == 12) printf("1\n"); else printf("%d\n", n+1); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 来月は何月? |
User | raven38 |
Language | C++ (G++ 4.6.4) |
Score | 100 |
Code Size | 680 Byte |
Status | AC |
Exec Time | 21 ms |
Memory | 924 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:32:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_1.txt, test_10.txt, test_11.txt, test_12.txt, test_2.txt, test_3.txt, test_4.txt, test_5.txt, test_6.txt, test_7.txt, test_8.txt, test_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
test_1.txt | AC | 21 ms | 796 KB |
test_10.txt | AC | 20 ms | 800 KB |
test_11.txt | AC | 20 ms | 920 KB |
test_12.txt | AC | 20 ms | 672 KB |
test_2.txt | AC | 21 ms | 804 KB |
test_3.txt | AC | 20 ms | 796 KB |
test_4.txt | AC | 20 ms | 796 KB |
test_5.txt | AC | 20 ms | 804 KB |
test_6.txt | AC | 21 ms | 804 KB |
test_7.txt | AC | 20 ms | 924 KB |
test_8.txt | AC | 21 ms | 800 KB |
test_9.txt | AC | 21 ms | 920 KB |