Submission #00122


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include<bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define ll long long
int main(){
int n,a;
cin>>n;
a=n/2;
if(a%3==1){
cout<<a/3+1<<" "<<a/3<<'\n';
}else if(a%3==2){
cout<<a/3<<" "<<a/3+1<<'\n';
}else if(a%3==0){
cout<<a/3<<" "<<a/3<<'\n';
}
return 0;
}

ステータス

項目 データ
問題 0014 - ツルとカメと小森さん
ユーザー名 a2209
投稿日時 2023-07-18 17:41:18
言語 C++17
状態 Wrong Answer
得点 0
ソースコード長 351 Byte
最大実行時間 30 ms
最大メモリ使用量 600 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01.txt AC 17 ms 472 KB
1
in02.txt AC 19 ms 448 KB
1
in03.txt AC 20 ms 424 KB
1
in04.txt WA 20 ms 396 KB
1
in05.txt AC 30 ms 372 KB
1
in06.txt WA 16 ms 600 KB
1
in07.txt AC 18 ms 576 KB
1
in08.txt WA 18 ms 548 KB
1
in09.txt AC 19 ms 516 KB
1
in10.txt WA 20 ms 488 KB
1