結果
問題 | No.687 E869120 and Constructing Array 1 |
ユーザー |
|
提出日時 | 2020-05-24 23:05:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 498 bytes |
コンパイル時間 | 570 ms |
コンパイル使用メモリ | 72,644 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 10:44:16 |
合計ジャッジ時間 | 1,248 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
#include <algorithm>#include <cmath>#include <cstdio>#include <deque>#include <iostream>#include <map>#include <numeric>#include <queue>#include <set>#include <stack>#include <string>#include <vector>using namespace std;typedef long long ll;#define MOD 1000000007int main() {int n;cin >> n;for (int a = 1; a <= 10; ++a) {for (int b = 1; b <= 10; ++b) {if (a + b == n) {cout << a << " " << b << endl;return 0;}}}return 0;}