結果
| 問題 |
No.141 魔法少女コバ
|
| コンテスト | |
| ユーザー |
not_522
|
| 提出日時 | 2015-07-28 07:32:23 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 1,465 ms |
| コンパイル使用メモリ | 158,800 KB |
| 実行使用メモリ | 17,088 KB |
| 最終ジャッジ日時 | 2024-07-16 04:35:34 |
| 合計ジャッジ時間 | 13,939 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 92 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int m, n, res = -1;
cin >> m >> n;
while (m != 0 && n != 0) {
if (m > n) {
res += m / n;
m %= n;
} else {
++res;
swap(m, n);
}
}
cout << res << endl;
}
not_522