結果
問題 | No.687 E869120 and Constructing Array 1 |
ユーザー |
![]() |
提出日時 | 2018-06-06 14:04:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 1,327 ms |
コンパイル使用メモリ | 158,164 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 10:14:17 |
合計ジャッジ時間 | 1,949 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
main.cpp: In function ‘int f(int)’: main.cpp:12:1: warning: control reaches end of non-void function [-Wreturn-type] 12 | } | ^
ソースコード
#include <bits/stdc++.h>using namespace std;int f(int n) {for (int i = 1; i <= 10; i++) {for (int j = 1; j <= 10; j++) {if (i + j == n) {cout << i << " " << j << endl;return 0;}}}}int main() {int n; cin >> n;f(n);}