Submission #32025


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<iostream>
using namespace std;
int main()
{
long long n, m;
cin >> n >> m;
long long crane = (m - 4*n) / -2;
long long xyzzy = n - crane;
cout << crane << " " << xyzzy << endl;
return (0);
}

ステータス

項目 データ
問題 0899 - 鶴亀算
ユーザー名 ei1710
投稿日時 2018-03-11 22:17:34
言語 C++11
状態 Accepted
得点 5
ソースコード長 229 Byte
最大実行時間 27 ms
最大メモリ使用量 696 KB

セット

セット 得点 Cases
1 All 5 / 5 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Input01 AC 24 ms 480 KB
1
Input02 AC 18 ms 452 KB
1
Input03 AC 16 ms 432 KB
1
Input04 AC 19 ms 532 KB
1
Input05 AC 16 ms 632 KB
1
Input06 AC 23 ms 476 KB
1
Input07 AC 21 ms 452 KB
1
Input08 AC 20 ms 424 KB
1
Input09 AC 26 ms 528 KB
1
Input10 AC 15 ms 500 KB
1
Input11 AC 17 ms 472 KB
1
Input12 AC 21 ms 580 KB
1
Input13 AC 22 ms 556 KB
1
Input14 AC 19 ms 536 KB
1
Input15 AC 14 ms 512 KB
1
Input16 AC 27 ms 480 KB
1
Input17 AC 17 ms 584 KB
1
Input18 AC 15 ms 688 KB
1
Input19 AC 17 ms 536 KB
1
Input20 AC 18 ms 636 KB
1
Input21 AC 17 ms 608 KB
1
Input22 AC 16 ms 584 KB
1
Input23 AC 21 ms 688 KB
1
Input24 AC 19 ms 668 KB
1
Input25 AC 18 ms 516 KB
1
Input26 AC 25 ms 620 KB
1
Input27 AC 20 ms 596 KB
1
Input28 AC 17 ms 696 KB
1
Input29 AC 22 ms 544 KB
1
Input30 AC 18 ms 648 KB
1