Submission #00069


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <bits/stdc++.h>
#define fin << "\n"
#define lol long long int
#define nintendo switch
#define usort(a) sort(a.begin() , a.end())
#define dsort(a) sort(a.rbegin() , a.rend())
#define space << " " <<
#define push_pair(a , b) push_back(make_pair(a , b))
#define check cout << 1 fin;
#define fixout(a) cout << fixed << setprecision(a)
#define bs(a , b) binary_search(a.begin() , a.end() , b)
#define ub(a , b) upper_bound(a.begin() , a.end() , b)
#define lb(a , b) lower_bound(a.begin() , a.end() , b)
#define Iter(type) type::iterator
using namespace std;
int main(void){
ios::sync_with_stdio(false);
cin.tie(0);
lol n;
cin >> n;
if(n % 6 == 2) cout << n / 6 + 1 space n / 6 fin;
if(n % 6 == 4) cout << n / 6 space n / 6 + 1 fin;
if(n % 6 == 0) cout << n / 6 space n / 6 + 0 fin;
return(0);
}

ステータス

項目 データ
問題 0014 - ツルとカメと小森さん
ユーザー名 Koba_gochiusa
投稿日時 2023-07-18 16:44:11
言語 C++
状態 Accepted
得点 100
ソースコード長 854 Byte
最大実行時間 33 ms
最大メモリ使用量 712 KB

セット

セット 得点 Cases
1 ALL 100 / 100 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01.txt AC 19 ms 600 KB
1
in02.txt AC 21 ms 680 KB
1
in03.txt AC 32 ms 640 KB
1
in04.txt AC 16 ms 600 KB
1
in05.txt AC 23 ms 560 KB
1
in06.txt AC 19 ms 644 KB
1
in07.txt AC 33 ms 468 KB
1
in08.txt AC 22 ms 544 KB
1
in09.txt AC 16 ms 628 KB
1
in10.txt AC 23 ms 712 KB
1