Submission #186823


Source Code Expand

#define _USE_MATH_DEFINES

#include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <valarray>
#include <vector>

#define SREP(s,i,n) for(int i=s;i<(int)(n);++i)
#define REP(i,a) SREP(0,i,a)
#define ALL(a) (a).begin(),(a).end()

#define CLR(a) memset(a,0,sizeof(a))
#define REMOVE_AT(v,i) v.erase(v.begin()+i)

using namespace std;
const double EPS = 1e-8;
const double D_INF = 1e12;
const int I_INF = 1 << 29;
typedef long long LL;

int main(){
	int N;
	cin >> N;
	N--;
	cout << ((N + 1) % 12 + 1) << endl;
	return 0;
}

Submission Info

Submission Time
Task A - 来月は何月?
User taksz
Language C++ (G++ 4.6.4)
Score 100
Code Size 844 Byte
Status AC
Exec Time 28 ms
Memory 940 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 12
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 28 ms 860 KB
test_10.txt AC 27 ms 820 KB
test_11.txt AC 21 ms 912 KB
test_12.txt AC 23 ms 816 KB
test_2.txt AC 24 ms 912 KB
test_3.txt AC 26 ms 920 KB
test_4.txt AC 23 ms 804 KB
test_5.txt AC 23 ms 812 KB
test_6.txt AC 24 ms 868 KB
test_7.txt AC 24 ms 940 KB
test_8.txt AC 23 ms 916 KB
test_9.txt AC 27 ms 932 KB