結果
問題 |
No.26 シャッフルゲーム
|
ユーザー |
![]() |
提出日時 | 2022-11-07 13:59:15 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 313 bytes |
コンパイル時間 | 3,052 ms |
コンパイル使用メモリ | 156,636 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 21:59:07 |
合計ジャッジ時間 | 1,980 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <ios> #include <iomanip> #include <iostream> #include <string> #include <algorithm> int main(void){ int a, times1; cin >> a >> times1; for(int i=0;i<times1;i++){ int b, c; cin >> b >> c; if(b==a){ a = c; } } cout <<a; }