結果
| 問題 | No.750 Frac #1 |
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2022-08-09 08:59:11 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 3,210 ms |
| コンパイル使用メモリ | 338,300 KB |
| 実行使用メモリ | 9,808 KB |
| 最終ジャッジ日時 | 2026-08-31 04:33:44 |
| 合計ジャッジ時間 | 4,158 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 4 WA * 26 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int N;
cin>>N;
map<double,pair<int,int>> m;
for(int i=0;i<N;i++){
int a,b;
cin>>a>>b;
m[a/b] = {a,b};
}
for(auto x:m){
cout<<x.second.first<<' '<<x.second.second<<endl;
}
}
keisuke6