結果
| 問題 |
No.141 魔法少女コバ
|
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2017-07-09 20:21:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 379 ms / 5,000 ms |
| コード長 | 203 bytes |
| コンパイル時間 | 1,588 ms |
| コンパイル使用メモリ | 166,720 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-07 04:56:27 |
| 合計ジャッジ時間 | 5,894 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 93 |
ソースコード
#include <bits/stdc++.h>
#define p(s) cout<<(s)<<endl
using namespace std;
int main(){
int ans=0;
int a,b;
cin>>a>>b;
while(a!=b){
if(a<b) swap(a,b);
else a-=b;
ans++;
}
p(ans);
return 0;
}
dnish