結果
| 問題 | No.687 E869120 and Constructing Array 1 |
| コンテスト | |
| ユーザー |
sutou
|
| 提出日時 | 2018-06-06 14:04:56 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 269 bytes |
| 記録 | |
| コンパイル時間 | 1,229 ms |
| コンパイル使用メモリ | 175,536 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-03-20 07:46:37 |
| 合計ジャッジ時間 | 1,797 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
sutou