結果
問題 |
No.3107 45^2
|
ユーザー |
|
提出日時 | 2025-04-18 20:04:01 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 226 bytes |
コンパイル時間 | 3,354 ms |
コンパイル使用メモリ | 274,148 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-04-18 20:04:05 |
合計ジャッジ時間 | 3,666 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; int pow(int x, int y) { int result = 1; for (int i = 0; i < y; i++) {result *= x;} return result; } int main() { int n; cin >> n; cout << pow(n, 2) << endl; }