結果
| 問題 | No.141 魔法少女コバ |
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-02-10 03:09:37 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 433 ms |
| コンパイル使用メモリ | 72,008 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 17:57:10 |
| 合計ジャッジ時間 | 14,723 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 92 TLE * 1 |
ソースコード
#include <iostream>
using namespace std;
int func(int m, int n)
{
if (m==0 or n==0) return 0;
if (m>n) return m/n+func(m%n, n);
return 1+func(n, m);
}
int main()
{
int m, n;
while (cin>>m>>n) cout<<func(m, n)-1<<endl;
}
hogeover30