結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
yamaken1343
|
| 提出日時 | 2015-11-04 22:51:24 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 179 bytes |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 20,864 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 12:27:33 |
| 合計ジャッジ時間 | 744 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void){
int n,a,b;
scanf("%d",&n);
a = n/2;
if(n%2 == 1){
printf("7");
a--;
}
for(b=0;b<a;b++){
printf("1");
}
printf("\n");
return 0;
}
yamaken1343