Submission #187197


Source Code Expand

#include <bits/stdc++.h>

using namespace std;

#define rep(i, n) for(int i = 0; i < (int)n; ++i)
#define repf(i, f, l) for(int i = f; i < (int)l; ++i)
#define repit(it, t) for(__typeof((t).begin()) it = (t).begin(); it != (t).end(); it++)

#define endl "\n"

#ifdef ONLINE_JUDGE
#define DEBUG false
#else
#define DEBUG true
#endif

#define pb emplace_back
#define lb lower_bound
#define ul unsigned long
#define ull unsigned long long
#define ll long long
#define INF 1000000007
#define MOD 1000000007
#define fs first
#define sd second

#define ALL(c) (c).begin(),(c).end()

#define DBG0(x) if(DEBUG){ cout << #x << ": " << x << "\t"; }
#define DBG(x) if(DEBUG){DBG0(x); cout << endl;}
#define DBG2(x, y) if(DEBUG){DBG0(x); DBG(y);}
#define DBG3(x, y, z) if(DEBUG){DBG0(x); DBG2(y, z);}
#define DBG4(w, x, y, z) if(DEBUG){DBG0(w); DBG3(x, y, z);}

template <class T>
ostream& operator<<(ostream& os, vector<T> xs){
    for(T x: xs) os << x << ' ';
    return os;
}

typedef vector<int> vint;
typedef vector<ll> vll;
typedef vector<ul> vul;
typedef vector<ull> vull;
typedef vector<bool> vbl;
typedef pair<int, int> pii;

int main(void){
    ios::sync_with_stdio(false);
    int n;
    cin >> n;
    string s;
    cout << n % 12 + 1 << endl;
    
    return 0;
}

Submission Info

Submission Time
Task A - 来月は何月?
User numa
Language C++11 (GCC 4.8.1)
Score 100
Code Size 1318 Byte
Status AC
Exec Time 31 ms
Memory 932 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 21 ms 932 KB
test_10.txt AC 25 ms 928 KB
test_11.txt AC 22 ms 924 KB
test_12.txt AC 25 ms 928 KB
test_2.txt AC 31 ms 924 KB
test_3.txt AC 24 ms 804 KB
test_4.txt AC 26 ms 800 KB
test_5.txt AC 31 ms 912 KB
test_6.txt AC 22 ms 916 KB
test_7.txt AC 21 ms 796 KB
test_8.txt AC 20 ms 844 KB
test_9.txt AC 26 ms 928 KB